浏览代码

Fixes floating promises

main
Eric Amodio 6 年前
父节点
当前提交
85bcbf2be7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/commands/diffBranchWithBranch.ts
  2. +1
    -1
      src/quickpicks/commonQuickPicks.ts

+ 1
- 1
src/commands/diffBranchWithBranch.ts 查看文件

@ -79,7 +79,7 @@ export class DiffBranchWithBranchCommand extends ActiveEditorCommand {
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;
}

+ 1
- 1
src/quickpicks/commonQuickPicks.ts 查看文件

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

正在加载...
取消
保存