-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
WorkspaceFolders can't be changed while testing #78740
Comments
@manuth please try to distill an isolated minimal test case to reproduce via the yo generator for me to run |
Alright - there you go: https://github.com/manuth/TestExtension |
I also verified that when updating workspace-folders from a command via
In my test-scenario I try to verify whether my settings are handled correctly in File/Folder/Workspace-mode so opening a folder, closing a folder and opening a workspace are important key-functions to me. |
@manuth adding a folder to an otherwise empty workspace or changing the first folder in that workspace currently requires us to restart the extension host. So it is currently not possible to test this, is that what you see? |
I'm not sure about that. Sadly I do not know how to debug the extension host itself. To me it looks like this piece of code is getting triggered: vscode/src/vs/workbench/api/common/extHostWorkspace.ts Lines 284 to 292 in 051b669
|
@bpasero should I open up a feature request or is this noted already? |
@bpasero do I understand correctly that after this change you still won't be able to change the currently opened folder in vscode but only to manipulate the currently opened vscode-workspace? |
Info
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
Feel free to clone my repo https://github.com/manuth/MarkdownConverter/ and checkout the
testrunner-issue
to reproduce the error.Expected Behavior
The workspace-folders should be changed.
Actual Behavior
An error-message occurs in the extension developement host:
The text was updated successfully, but these errors were encountered: