Kaynağa Gözat

Fixes cross repository sha loading into the Graph

main
Eric Amodio 2 yıl önce
ebeveyn
işleme
ff6010b50e
2 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. +3
    -0
      src/plus/webviews/graph/graphWebview.ts
  2. +1
    -0
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 3
- 0
src/plus/webviews/graph/graphWebview.ts Dosyayı Görüntüle

@ -39,6 +39,7 @@ import {
} from './protocol';
export interface ShowCommitInGraphCommandArgs {
repoPath: string;
sha: string;
}
@ -107,7 +108,9 @@ export class GraphWebview extends WebviewBase {
},
this.container.subscription.onDidChange(this.onSubscriptionChanged, this),
registerCommand(Commands.ShowCommitInGraph, (args: ShowCommitInGraphCommandArgs) => {
this.repository = this.container.git.getRepository(args.repoPath);
this._selectedSha = args.sha;
if (this._panel == null) {
void this.show();
} else {

+ 1
- 0
src/webviews/commitDetails/commitDetailsWebviewView.ts Dosyayı Görüntüle

@ -185,6 +185,7 @@ export class CommitDetailsWebviewView extends WebviewViewBase
if (this._context.commit == null) return;
void executeCommand<ShowCommitInGraphCommandArgs>(Commands.ShowCommitInGraph, {
repoPath: this._context.commit.repoPath,
sha: this._context.commit.sha,
});
break;

Yükleniyor…
İptal
Kaydet