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

Make it easier to open multiple repositories in one workspace #333

Open
code-asher opened this issue Aug 2, 2024 · 2 comments
Open

Make it easier to open multiple repositories in one workspace #333

code-asher opened this issue Aug 2, 2024 · 2 comments

Comments

@code-asher
Copy link
Member

code-asher commented Aug 2, 2024

Currently, if you try to open a workspace it will automatically launch the folder configured in the API response.

If there is no default folder, then the plugin will ask you to open a recent folder that has been opened before in that workspace.

If there are no recents, then it opens a blank window, and from there you can open a directory through File > Open.

The default folder stuff works fine if you have one repository per workspace, but how can we make it easier to open multiple repositories?

One idea is that we can ask to open a recent, but we can also show an option that allows you to pick any arbitrary file path.

Another idea is to somehow get a list of all the repositories on the workspace and then ask the user which to open, but this would require more brainstorming. Those directories would need to come from the API somehow. Maybe something on the template?

Open to other ideas.

@code-asher code-asher changed the title Make it easier to open multiple repositories Make it easier to open multiple repositories in one workspace Aug 2, 2024
@code-asher
Copy link
Member Author

code-asher commented Aug 2, 2024

The code in question:

const items = opened.map((f) => f.folderUri.path)
folderPath = await vscode.window.showQuickPick(items, {
title: "Select a recently opened folder",
})
if (!folderPath) {
// User aborted.
return
}

I think the strategy is:

  1. Add a description saying these are the folders that have been opened before on this workspace, and would you like to open one of them?
  2. Add a "open new" button that launches a file picker and lets you pick any directory on the remote, if possible. I am not sure something like this is built in. Like the "show local" button but reversed.

@nickmealey
Copy link

The ability to set a home folder like you can with the Jetbrains Gateway would be very nice. Currently every time you open the workspace you have to open the folder once VSCode launches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants