Skip to content

Copilot Tab Breaks Pylance Function Annotations Until Reload #7090

Open
@bilgilendir

Description

@bilgilendir

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: 1.98.2
  • OS Version: Darwin arm64 24.3.0

Steps to Reproduce:

  1. Open a Python file in VS Code with the Pylance extension enabled.
  2. Hover over a function to see its annotations (works as expected).
  3. Open the GitHub Copilot tab and ask about the file.
  4. Switch back to the Python file and try to see function annotations again.
  5. Annotations no longer appear.
  6. Reloading the window (Developer: Reload Window) restores functionality.

Expected Behavior:

Opening the Copilot tab should not break Pylance's function annotations in Python files.

Actual Behavior:

After opening the Copilot tab, Pylance stops displaying function annotations in the editor until the window is reloaded.

Logs:

[Info] Pylance language server started
[Info] Function annotations working...
[Info] Copilot tab opened
[Error] File or directory "vscode-chat-code-block://..." does not exist.
[Info] No source files found.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions