Skip to content
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

Removed duplicated code and use same method to create default workspace key. #8893

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

heejaechang
Copy link
Collaborator

@heejaechang heejaechang commented Sep 4, 2024

Recently, Pylance added its own workspace factory to support other types of workspaces, such as Copilot or Code Block workspaces, which require their own behaviors.

While doing that, we moved all notebook-related code from the existing workspace factory. It seems this introduced a bug where the default workspace still uses notebook-related bits when generating the default workspace key.

Now, we use the same code to generate the default workspace key, rather than having two separate places generating it differently that caused us to miss this one spot.

fixes microsoft/pylance-release#6348

Copy link
Contributor

github-actions bot commented Sep 4, 2024

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@rchiodo rchiodo merged commit 2fecb17 into microsoft:main Sep 4, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No autocompletion for single-file mode starting from Pyright version 1.1.378
3 participants