Browse Source

Fixes #2926 works around vscode label formatter

main
Eric Amodio 1 year ago
parent
commit
095b469b4a
3 changed files with 6 additions and 4 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +3
    -3
      package.json
  3. +2
    -1
      src/env/node/git/localGitProvider.ts

+ 1
- 0
CHANGELOG.md View File

@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#2926](https://github.com/gitkraken/vscode-gitlens/issues/2926) - "Open File at Revision" has incorrect editor label if revision contains path separator
- Fixes [#2952](https://github.com/gitkraken/vscode-gitlens/issues/2952) - Inline blame not working because of missing ignoreRevsFile
- Fixes [#2814](https://github.com/gitkraken/vscode-gitlens/issues/2814) - GitLens Inspect: "Files Changed" not following when switching between commits in File History

+ 3
- 3
package.json View File

@ -14732,9 +14732,9 @@
"authority": "*",
"formatting": {
"label": "${path} (${query.ref})",
"separator": "/",
"workspaceSuffix": "GitLens",
"stripPathStartingSeparator": true
"normalizeDriveLetter": true,
"tildify": true,
"workspaceSuffix": "GitLens"
}
}
],

+ 2
- 1
src/env/node/git/localGitProvider.ts View File

@ -929,7 +929,8 @@ export class LocalGitProvider implements GitProvider, Disposable {
scheme: Schemes.GitLens,
authority: encodeGitLensRevisionUriAuthority(metadata),
path: path,
query: ref ? JSON.stringify({ ref: shortenRevision(ref) }) : undefined,
// Replace `/` with `\u2009\u2215\u2009` so that it doesn't get treated as part of the path of the file
query: ref ? JSON.stringify({ ref: shortenRevision(ref).replace('/', '\u2009\u2215\u2009') }) : undefined,
});
return uri;
}

Loading…
Cancel
Save