-
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
Multi-root: Excluded file opens under wrong root #95056
Comments
If I have the main project root folder collapsed and only the subproject1 folder revealed in explorer view, the opened files appear under the subproject1 folder. |
Yeah, happens here as well even with all extensions disabled. Basically I have a structure with a project root directory, beneath a When using The entry disappears instantly once I close any of the files erroneously showing up there. Expected behavior should be that none of these files mysteriously appear because these files under their folders are set to be excluded using |
Same issue here The issue with collapse of the folder, only occurs for folders located in the root project directory, so say you have Until this gets resolved, i recommend just commenting out the files.exclude section that excludes folders located in the root, as it is at least usable in this configures, though the folders will be shown twice. Tested without any extensions on |
I think this issue is erroneously categorized, it clearly results in buggy behavior to me which earlier versions of vscode didn't have. Should be labelled as a bug. |
Yes, this is a regression, it worked in earlier builds but not after 1.44.0. |
Correction to my earlier statement. Opening any file will make gopls believe it is part of the incorrect root it is opened under and will hence make it unable to resolve dependencies |
@isidorn Can you correct the issue filing please? This is a bug, not a feature request. |
Yes. Just did that. Thanks |
Also bumped into this issue. It might be a regression as I used it before to work with Go projects that have multiple modules as it is the only workaround to get it to work. golang/go#32394 I made a repository that can reproduce this behaviour with a recording of it in action: https://github.com/AndreasBackx/vscode-exclude-bug
Okay it also seems to occur for nested folders if there is a file next to the ignored folder. :( |
Yes. This is really annoying when working with deeply nested projects. Version: 1.47.0-insider (user setup) |
A "workable" solution is to move all your subproject folders into a folder under the root project So if you have a project looking like this
Then you can change it to this (remember to update
Now when opening a file in one of the subprojects, it will not close the subproject folder on you |
Isn't "out-of-scope" the wrong way to close a bug report, according to the 'decision making process' definition? That probably should be "Won't fix", to make it clear that a regression bug has been decided to be kept, rather than treating it as a feature request that is not in scope. |
Observing the exact same issue. More transparency and explanations regarding those issues would be more helpful than just rejecting all those issues. There is a clear lack of support on multi-root workspaces, and it's hard to know wether to invest or not in this tool right now. |
Issue Type: Bug
I have a multi-root project setup in the following way:
When I open up a file located under subproject1 folder, the whole subproject1 folder gets collapsed in the explorer view and the opened file is shown under the main project root folder even though it is supposed to be excluded from it.
VS Code version: Code 1.44.0 (2aae1f2, 2020-04-07T23:31:18.860Z)
OS version: Windows_NT x64 10.0.19041
The text was updated successfully, but these errors were encountered: