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

Better handling of authenitcation across multiple instances #70

Open
jamesharris-garmin opened this issue May 10, 2024 · 1 comment
Open

Comments

@jamesharris-garmin
Copy link

I very often work with AOSP style projects that are composed of repositories across multiple gerrit top level instances that can co-exist in the same workspace.

It seems like I can only really authenticate to a single gerrit instance per workspace under the current forumation of the tool.

Would it be posisble to re-define the tool to better tie into the git API and possibly look for URL authentication via the ~/.netrc authentication or other authentication mechanisms external to vscode settings?

@SanderRonde
Copy link
Owner

Authentication is currently not the biggest hurdle to multi-instance workspaces imo, the thing I struggle most with is how things would work UI-wise etc. I'm not entirely opposed to the idea (although it does incur quite some complexity) but there are some things where I'm not really sure how things would work. Maybe you (as a multi-repo workspace user) can tell me what you'd expect behavior to be in these situations and maybe it'll turn out to be not super hard to do:

  • When you open the changes tab, what would you expect to see? All changes in all instances listed together, a sort of picker where you can pick one, only the ones for the "current" repo, determined by which file is open?
  • Similarly what would commands that operate without context do, for example the change picker (in the bottom bar). Would it again show all changes or only the ones for the current repo?

So I think the main question is how would you determine the current repo, or maybe we want all changes from all repos combined together (which would probably make quite some API calls quite a bit slower). If the answer is that we do just take the current file, is it going to be a situation where you are likely to switch repos often? Do you generally stick to a repo or do you hop back and forth?

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

2 participants