Skip to content

gitlens.remotes no longer takes effect when defined in project's .vscode/settings.json file #2760

@sjdemartini

Description

@sjdemartini

Description

  1. With GitLens version v2023.6.2005
  2. With a .vscode/settings.json file that defines the "gitlens.remotes" field, like:
    "gitlens.remotes": [
      {
        "domain": "my.custom.example.com",
        "type": "GitLab"
      }
    ],
    

Historically, this was sufficient (for the past couple years or so), and the remote would take effect for the whole project. Now, it seems I need to separately define this setting instead/externally in my own .code-workspace workspace settings file in order for it to take effect. (That's rather inconvenient for our shared project where all developers should benefit from the same remote setup.) With the definition above only in the .vscode/settings.json, all remote-associated commands like GitLens: Copy Remote File URL, GitLens: Copy Remote Commit URL, etc. do not work:

image

Separately, clicking that See how to configure a custom remote provider... link goes to https://github.com/gitkraken/vscode-gitlens#remote-provider-integration-settings-, which is dead (the anchor no longer exists). There is no help about how to resolve.

Other GitLens behavior still works fine (I can view inline blame, look at file details, etc.).

GitLens Version

v2023.6.2005

VS Code Version

Version: 1.79.2
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:58:52.392Z (1 wk ago)
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin x64 22.5.0

Git Version

git version 2.30.0

Logs, Screenshots, Screen Captures, etc

For what it's worth, I do see a single line in the GitLens output:

[2023-06-21 18:50:41.427] [GIT  ] [/Users/sdemartini/vscode_workspaces] git rev-parse --show-toplevel • Command failed: /usr/local/bin/git -c core.quotepath=false -c color.ui=false rev-parse --show-toplevel • not a git repository (or any of the parent directories): .git [54ms]

I have my foo.code-workspace file in the /Users/sdemartini/vscode_workspaces directory, which is not where the actual repo is (the folders for the workspace point to a different path), but this seems likely to be unrelated.

Metadata

Metadata

Assignees

Labels

needs-more-infoNeeds further information, steps, details, etc.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions