Type: Bug
- Do anything that makes Copilot register a virtual document for a Jupyter notebook with VS Code for the current session, for instance by attaching a Python Jupyter notebook to a Copilot chat by using # followed by the filename, or by having Copilot create it.
At this point, in our project, we get dozens of errors reported by Pylance/Pyright (mostly due to it not being able to find imports) whenever that Copilot session is open, and not when it isn't (even if we open the notebook itself), because when the session is open there's a virtual document for the Jupyter notebook registered with VS Code, which Pylance picks up, but then I guess because of the path of the virtual document, it can't find things at the root of our project it normally finds.
This is really problematic for our workflow, constantly warning us of errors that don't really exist.
Extension version: 0.48.1
VS Code version: Code 1.120.0 (0958016, 2026-05-12T20:17:22Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Type: Bug
At this point, in our project, we get dozens of errors reported by Pylance/Pyright (mostly due to it not being able to find imports) whenever that Copilot session is open, and not when it isn't (even if we open the notebook itself), because when the session is open there's a virtual document for the Jupyter notebook registered with VS Code, which Pylance picks up, but then I guess because of the path of the virtual document, it can't find things at the root of our project it normally finds.
This is really problematic for our workflow, constantly warning us of errors that don't really exist.
Extension version: 0.48.1
VS Code version: Code 1.120.0 (0958016, 2026-05-12T20:17:22Z)
OS version: Windows_NT x64 10.0.26100
Modes: