We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7b478 commit ea92ba9Copy full SHA for ea92ba9
src/git/gitUri.ts
@@ -329,7 +329,7 @@ export class GitUri extends ((Uri as any) as UriEx) {
329
330
const normalizedRepoPath = Strings.normalizePath(repoPath);
331
332
- if (normalizedFileName.startsWith(normalizedRepoPath)) return normalizedFileName;
+ if (!normalizedFileName || normalizedFileName.startsWith(normalizedRepoPath)) return normalizedFileName;
333
return Strings.normalizePath(paths.join(normalizedRepoPath, normalizedFileName));
334
}
335
0 commit comments