Skip to content

Restart LS if python env info changes #19080

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

Conversation

kimadeline
Copy link

Closes #18995

@kimadeline kimadeline added the no-changelog No news entry required label May 5, 2022
@kimadeline kimadeline self-assigned this May 5, 2022
@kimadeline kimadeline merged commit ceb949f into microsoft:main May 6, 2022
const resource = Uri.parse(resourcePath);

// Restart the language server if the interpreter path changed (#18995).
if (info.envPath === interpreter?.envPath && info.path !== interpreter?.path) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably make sure info.envPath is not undefined or an empty string before restarting.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kimadeline kimadeline deleted the 18995-restart-ls-if-path-selected-env-changes branch May 6, 2022 00:33
karthiknadig pushed a commit to karthiknadig/vscode-python that referenced this pull request May 10, 2022
* Restart LS if python env info changes

* Fix exit condition, add test case for no change
karthiknadig pushed a commit that referenced this pull request May 10, 2022
* Restart LS if python env info changes

* Fix exit condition, add test case for no change
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
* Restart LS if python env info changes

* Fix exit condition, add test case for no change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restart language server if interpreter path of selected environment changes
2 participants