浏览代码

Shows explorer view when showing results

main
Eric Amodio 6 年前
父节点
当前提交
977957904a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      src/views/resultsExplorer.ts

+ 3
- 2
src/views/resultsExplorer.ts 查看文件

@ -114,7 +114,7 @@ export class ResultsExplorer implements TreeDataProvider {
this._onDidChangeTreeData.fire();
}
async showComparisonInResults(repoPath: string, ref1: string, ref2: string) {
showComparisonInResults(repoPath: string, ref1: string, ref2: string) {
this.addResults(new ComparisionResultsNode(repoPath, ref1, ref2, this));
this.showResults();
}
@ -147,7 +147,8 @@ export class ResultsExplorer implements TreeDataProvider {
this.showResults();
}
private showResults() {
private async showResults() {
await commands.executeCommand('workbench.view.explorer');
Messages.showResultExplorerInfoMessage();
setCommandContext(CommandContext.ResultsExplorer, true);
}

正在加载...
取消
保存