Browse Source

Fixes cross repository sha loading into the Graph

main
Eric Amodio 2 years ago
parent
commit
ff6010b50e
2 changed files with 4 additions and 0 deletions
  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 View File

@ -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 View File

@ -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;

Loading…
Cancel
Save