-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Python ext API registerGetNotebookUriForTextDocumentUriFunction
and move code into Python/Pylance extension
#14977
Comments
registerGetNotebookUriForTextDocumentUriFunction
into Python/Pylance extension
registerGetNotebookUriForTextDocumentUriFunction
into Python/Pylance extensionregisterGetNotebookUriForTextDocumentUriFunction
and move code into Python/Pylance extension
I imagine this would helped by microsoft/vscode#154983 or even made unnecessary. |
I do not believe that would help, |
I started trying to move this code into Pylance and found that it calls |
Hmm, yes you are right, perhaps @amunger might have some idea why we copied the types. |
I've removed the API from Pylance, so Pylance will no longer be relying on Python/Jupyter to provide a function to resolve the input box URI to a notebook URI. We're aiming to ship a prerelease build today (2023.12.104) that will include this change and we should be shipping a stable/release build in the next week or so. I think once Pylance's stable build includes my change it should be safe for Python and Jupyter to remove their related code. Anyone that hits compatibility issues (ex. new Python + old Pylance) can be told to upgrade Pylance. @DonJayamanne, @karthiknadig, do you agree? cc: @luabud |
@debonte Yes, it makes sense me. for compatibility we could also set the engine number so that the right versions match for pylance/python/jupyter. |
@debonte thanks, I will prepare a PR to remote this API from Jupyter extension (but will wait for Pylance to first ship befmore merging this PR) Any idea when the next stable version goes out? is it lined up with the Python/vscode release schedule? |
Likely sometime this week. We are not in strict alignment with the vscode release schedule. |
I will be removing the Not sure where these tests should live nor whether it requires a change. |
The |
Part of microsoft/vscode-jupyter#14977 Removes some effectively dead code that would only be used by very old (year+) versions of Pylance. This logic has all been moved into vscode-pylance: - Middleware to make the interactive window input box look like a notebook cell - Call to Jupyter to get pythonpath for notebooks. - Configuration hook to get `[python]` value of `editor.formatOnType`. - LSP notebook experiment
Part of microsoft/vscode-jupyter#14977 Removes some effectively dead code that would only be used by very old (year+) versions of Pylance. This logic has all been moved into vscode-pylance: - Middleware to make the interactive window input box look like a notebook cell - Call to Jupyter to get pythonpath for notebooks. - Configuration hook to get `[python]` value of `editor.formatOnType`. - LSP notebook experiment
Part of microsoft/vscode-jupyter#14977 Removes some effectively dead code that would only be used by very old (year+) versions of Pylance. This logic has all been moved into vscode-pylance: - Middleware to make the interactive window input box look like a notebook cell - Call to Jupyter to get pythonpath for notebooks. - Configuration hook to get `[python]` value of `editor.formatOnType`. - LSP notebook experiment
Given that
its simpler (for maintenance) to move this code into Python/Pylance extension.
This is one less API in Python extension.
Thoughts/Concerns ? @karthiknadig @amunger @debonte
The text was updated successfully, but these errors were encountered: