Skip to content

Restart Pylance without reload prompt once it is detected #18509

Closed
@kieferrm

Description

@kieferrm

This shows the experience when creating a sample python dev container: https://cln.sh/KBwsUa (wait to the end of the recording...)

That I need to reload the window is not what I'd expect from a sample dev container (or in general). Since the Python extension activates on the existence of requirements.txt (see here) the language server change listener (see here is active.

It's unclear to why we need to reload the window if there is no open file at all. Also, we should make an effort to not require a reload. For example, the TS extension can recover from language server crashes/restarts without any reload.

Metadata

Metadata

Assignees

Labels

area-editor-*User-facing catch-allbugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityon-testplanAdded to test planverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions