rriverak / vscode-gitlab-explorer

VSCode extension for working with GitLab Project Items, supporting both GitLab.com and custom GitLab Servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for multiple GitLab instances - e.g. gitlab.com and self-hosted

Nowaker opened this issue · comments

Here's an example how this issue was resolved in a different plugin - Gitlab MR:

"gitlab-mr.accessToken": "ACCESS_TOKEN_FOR_GITLAB.COM",
"gitlab-mr.accessTokens": {
    "https://gitlab.domain.com": "ACCESS_TOKEN_FOR_GITLAB.DOMAIN.COM"
}

Which instance to use should be inferred from the git repo URL.