-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Offer user a way to enter a workspace if detecting a workspace file #45749
Comments
@weinand to be clear, you expect a warning to show up whenever a user opens a folder where there is 1-N workspace files top level in that folder? |
I'm expecting a warning if a user opens a folder in VS Code that contains a file "*.code-workspace". The warning would have two options:
|
This is a similar request to discussed here: I would love this. If someone has gone to the effort of maintaining a code-workspace in a repository (which is somewhat required for some debugging scenarios) it'd be nice if others opening the folder got a prompt about it. I suggested it could exist in the (FWIW, I don't think it should be a warning - just an offer, like the recommended extensions @bpasero mentioned in the comment linked above). |
@bpasero #45657 (comment) is the latest case where I ran into this problem. |
I have renamed this, I think there are multiple cases where we could offer to open the workspace:
|
Sounds great to me :-) |
Looks good to me - does it only look in the root folder that was opened, or does it look in .vscode/ too? (It'd be nice to support both since some projects wont want IDE-specific files like this in their root) |
@DanTup yeah I forgot to mention: it only supports |
I haven't seen many projects use workspaces yet (maybe in part because of the lack of this) but I have seen projects that try to avoid IDE-specific files (esp. if the maintainers use many different IDEs). It'd be much easier to have this extra file accepted if it was in the folder with all the other vscode files (I'd also have a personal preference to put mine in there because the root is already a bit bloated with Travis, AppVeyor, tslint, tscobfig, several npm files, etc! :( |
I receive more and more issues where the reproducible steps assume a multi-root setup with a single folder and a workspace file in this folder.
Since the reproducible steps typically don't explain how to open the project in VS Code I just open the folder. As a consequence I'm missing all workspace settings and launch.configs which makes it difficult to reproduce the issue at hand.
After some interaction with the issue's author we figure out that I was supposed to open the project via the workspace file.
Could we add some smartness to VS Code's "Open Folder" action that warns about this situation and offers me to open the workspace file instead?
/cc @isidorn
The text was updated successfully, but these errors were encountered: