Browse Source

Fixes issue with showing diffs of staged files

main
Eric Amodio 4 years ago
parent
commit
b600bdc2fc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/git/gitUri.ts

+ 1
- 1
src/git/gitUri.ts View File

@ -372,7 +372,7 @@ export class GitUri extends ((Uri as any) as UriEx) {
const path = GitUri.resolve(fileName, repoPath); const path = GitUri.resolve(fileName, repoPath);
return Uri.parse( return Uri.parse(
// Change encoded / back to / otherwise uri parsing won't work properly // Change encoded / back to / otherwise uri parsing won't work properly
`${DocumentSchemes.Git}:${encodeURIComponent(path).replace(/%2F/g, slash)}?${encodeURIComponent(
`${DocumentSchemes.Git}:/${encodeURIComponent(path).replace(/%2F/g, slash)}?${encodeURIComponent(
JSON.stringify({ JSON.stringify({
// Ensure we use the fsPath here, otherwise the url won't open properly // Ensure we use the fsPath here, otherwise the url won't open properly
path: Uri.file(path).fsPath, path: Uri.file(path).fsPath,

Loading…
Cancel
Save