Browse Source

Fixes floating promises

main
Eric Amodio 6 years ago
parent
commit
85bcbf2be7
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/commands/diffBranchWithBranch.ts
  2. +1
    -1
      src/quickpicks/commonQuickPicks.ts

+ 1
- 1
src/commands/diffBranchWithBranch.ts View File

@ -79,7 +79,7 @@ export class DiffBranchWithBranchCommand extends ActiveEditorCommand {
if (args.ref1 === undefined) return undefined; if (args.ref1 === undefined) return undefined;
} }
Container.resultsExplorer.showComparisonInResults(repoPath, args.ref1, args.ref2);
await Container.resultsExplorer.showComparisonInResults(repoPath, args.ref1, args.ref2);
return undefined; return undefined;
} }

+ 1
- 1
src/quickpicks/commonQuickPicks.ts View File

@ -247,7 +247,7 @@ export class ShowCommitInResultsQuickPickItem extends CommandQuickPickItem {
async execute( async execute(
options: TextDocumentShowOptions = { preserveFocus: false, preview: false } options: TextDocumentShowOptions = { preserveFocus: false, preview: false }
): Promise<{} | undefined> { ): Promise<{} | undefined> {
Container.resultsExplorer.showCommitInResults(this.commit);
await Container.resultsExplorer.showCommitInResults(this.commit);
return undefined; return undefined;
} }
} }

Loading…
Cancel
Save