Skip to content

Investigation: do not restart Extension host when first folder changes #69335

Open
@bpasero

Description

@bpasero

Today we restart the extension host whenever the first folder changes because workspace.rootPath is always set to that first folder and it never used to change after the extension host started once.

If we would not restart the extension host anymore an extension:

  • could use workspace.rootPath as before, it would still point to the first folder always (which can be undefined if the workspace contains no folders)
  • could subscribe to the onDidChangeWorkspaceFolders event to get notified about updates
  • would see the value of workspace.rootPath changing during runtime whenever the first folder changes

//cc @sandy081 @jrieken

Metadata

Metadata

Assignees

Labels

api-proposalunder-discussionIssue is under discussion for relevance, priority, approachworkbench-multirootMulti-root (multiple folders) issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions