VS Code: Pre-selecting GitLab account based on available projects
Problem to solve
The current multi-account version of our extension supports a heuristic for pre-selecting a GitLab account:
If the user added accounts from different instances, for example:
-
private
ongitlab.com
-
work
onself-managed.com
if they open a project on gitlab.com
, we automatically select private
account (and vice versa).
Proposal
Replicate this heuristic, now completely contained in the GitLabProjectRepository
, for the single-account selection.
Further details
[VS Code] Only support single account per works... (#1377 - closed) needs to be done first.
Before this issue is implemented, we'll ask users to select which account they want to use in this scenario. This account selection will happen only once (until they delete their VS Code or the project folder).
Links / references
Edited by Tomas Vik