@@ -6,6 +6,10 @@ import { parseCommandContext } from '../../../commands/commandContext.utils';
66import type { CopyDeepLinkCommandArgs } from '../../../commands/copyDeepLink' ;
77import type { CopyMessageToClipboardCommandArgs } from '../../../commands/copyMessageToClipboard' ;
88import type { CopyShaToClipboardCommandArgs } from '../../../commands/copyShaToClipboard' ;
9+ import type { ExplainBranchCommandArgs } from '../../../commands/explainBranch' ;
10+ import type { ExplainCommitCommandArgs } from '../../../commands/explainCommit' ;
11+ import type { ExplainStashCommandArgs } from '../../../commands/explainStash' ;
12+ import type { ExplainWipCommandArgs } from '../../../commands/explainWip' ;
913import type { GenerateChangelogCommandArgs } from '../../../commands/generateChangelog' ;
1014import type { GenerateCommitMessageCommandArgs } from '../../../commands/generateCommitMessage' ;
1115import type { InspectCommandArgs } from '../../../commands/inspect' ;
@@ -3870,7 +3874,7 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
38703874 const ref = this . getGraphItemRef ( item , 'branch' ) ;
38713875 if ( ref == null ) return Promise . resolve ( ) ;
38723876
3873- return executeCommand ( 'gitlens.ai.explainBranch' , {
3877+ return executeCommand < ExplainBranchCommandArgs > ( 'gitlens.ai.explainBranch' , {
38743878 repoPath : ref . repoPath ,
38753879 ref : ref . ref ,
38763880 source : { source : 'graph' , type : 'branch' } ,
@@ -3881,9 +3885,9 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
38813885 const ref = this . getGraphItemRef ( item , 'revision' ) ;
38823886 if ( ref == null ) return Promise . resolve ( ) ;
38833887
3884- return executeCommand ( 'gitlens.ai.explainCommit' , {
3888+ return executeCommand < ExplainCommitCommandArgs > ( 'gitlens.ai.explainCommit' , {
38853889 repoPath : ref . repoPath ,
3886- ref : ref . ref ,
3890+ rev : ref . ref ,
38873891 source : { source : 'graph' , type : 'commit' } ,
38883892 } ) ;
38893893 }
@@ -3893,9 +3897,9 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
38933897 const ref = this . getGraphItemRef ( item , 'stash' ) ;
38943898 if ( ref == null ) return Promise . resolve ( ) ;
38953899
3896- return executeCommand ( 'gitlens.ai.explainStash' , {
3900+ return executeCommand < ExplainStashCommandArgs > ( 'gitlens.ai.explainStash' , {
38973901 repoPath : ref . repoPath ,
3898- ref : ref . ref ,
3902+ rev : ref . ref ,
38993903 source : { source : 'graph' , type : 'stash' } ,
39003904 } ) ;
39013905 }
@@ -3905,7 +3909,7 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
39053909 const ref = this . getGraphItemRef ( item , 'revision' ) ;
39063910 if ( ref == null ) return Promise . resolve ( ) ;
39073911
3908- return executeCommand ( 'gitlens.ai.explainWip' , {
3912+ return executeCommand < ExplainWipCommandArgs > ( 'gitlens.ai.explainWip' , {
39093913 repoPath : ref . repoPath ,
39103914 source : { source : 'graph' , type : 'wip' } ,
39113915 } ) ;
0 commit comments