Bladeren bron

Fixes cross repository sha loading into the Graph

main
Eric Amodio 2 jaren geleden
bovenliggende
commit
ff6010b50e
2 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  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 Bestand weergeven

@ -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 Bestand weergeven

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

Laden…
Annuleren
Opslaan