Browse Source

Avoids git call on already tracked documents

main
Eric Amodio 7 years ago
parent
commit
c7e0c6a13a
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/gitService.ts

+ 4
- 1
src/gitService.ts View File

@ -361,7 +361,10 @@ export class GitService extends Disposable {
editor = editor || window.activeTextEditor;
if (editor === undefined) return undefined;
return this.getRepoPath(editor.document.uri);
const doc = await Container.tracker.getOrAdd(editor.document.uri);
if (doc === undefined) return undefined;
return doc.uri.repoPath;
}
getHighlanderRepoPath(): string | undefined {

Loading…
Cancel
Save