Skip to content

Restart language server if interpreter path of selected environment changes #18995

Closed
@karrtikr

Description

@karrtikr

Now that we support conda environments without python, installing python into those environments should result in restart of language servers as the python that is being used by the env changes. We can use

this.interpreterService.onDidChangeInterpreterInformation(
to check if interpreter path changes, or fire an event after
private async ensureEnvironmentContainsPython(pythonPath: string) {
finishes execution.

Related: #18964

Metadata

Metadata

Assignees

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions