Update JSDoc on updateWorkspaceFolders
when extension host will restart
#165010
Labels
api
insiders-released
Patch has been released in VS Code Insiders
workbench-workspace
Workspace issues
Milestone
Does this issue occur when all extensions are disabled?: Yes/No
No
Steps to Reproduce:
updateWorkspaceFolders
.Bug:
Every time i mount my filesystem the hole extension reloads:
I think it has to do with the note you added to
updateWorkspaceFolders
jsdoc:If the first workspace folder is added, removed or changed, the currently executing extensions (including the one that called this method) will be terminated and restarted so that the (deprecated) rootPath property is updated to point to the first workspace folder.
So the bug is that it also reloads the extensions if you add a workspace and not change or remove the first workspace folder.
That's realy bad if your extension keeps a constant connection with a remote location to keep the remoteFilesystem connected which will be terminated if the extension gets restarted by vscode.
The text was updated successfully, but these errors were encountered: