Skip to content
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

Option to automatically open a workspace if opening a folder #153452

Closed
devantler opened this issue Jun 28, 2022 · 5 comments
Closed

Option to automatically open a workspace if opening a folder #153452

devantler opened this issue Jun 28, 2022 · 5 comments
Labels
feature-request Request for new features or functionality workbench-multiroot Multi-root (multiple folders) issues

Comments

@devantler
Copy link

A previous issue (#64565) was closed without resolving this. I still think this would be a welcome change, as accepting a prompt to open the workspace whenever one opens a folder with a workspace file is annoying. The issue would also help solve a feature request for the Project Manager extension related to the same problem (alefragnani/vscode-project-manager#334 (comment)).

I am opening this issue in the hope of the team revisiting this issue 🙏🏻

@bpasero bpasero changed the title [Feature] Option to automatically open a workspace if opening a folder Option to automatically open a workspace if opening a folder Jun 30, 2022
@bpasero bpasero added feature-request Request for new features or functionality workbench-multiroot Multi-root (multiple folders) issues labels Jun 30, 2022
@bpasero bpasero removed their assignment Jun 30, 2022
@bpasero
Copy link
Member

bpasero commented Jun 30, 2022

Can you explain how this would work exactly? What if there are multiple workspace files in a folder and how deeply nested should a search for workspace files go?

@devantler
Copy link
Author

So I think a friendly approach would be to look for workspace files at the root of the opened folder. And then apply the following rules:

  • If there is one workspace file at the root of the folder, open it automatically if some setting (e.g. workbench.openWorkspaceAutomatically is set to true. Otherwise, show the prompt to open a workspace as usual.
  • If there are multiple workspace files at the root of the folder, open a prompt (similar to the one that pops up now) where the user can choose which workspace to open from a list of the possible workspaces. The prompt with the list could be an extension of the current prompt and should be the default behaviour when opening folders.

In my case, I do not have any wish for it to look into nested folders for workspaces, as I only miss this when I open a folder with a workspace at its root, and it is not automatically opened.

@bpasero bpasero added this to the Backlog Candidates milestone Jul 26, 2022
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot
Copy link
Collaborator

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot
Copy link
Collaborator

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality workbench-multiroot Multi-root (multiple folders) issues
Projects
None yet
Development

No branches or pull requests

3 participants