@@ -5,6 +5,7 @@ import type { Commands } from '../../../../../constants.commands';
55import type { GitPausedOperationStatus } from '../../../../../git/models/pausedOperationStatus' ;
66import { pausedOperationStatusStringsByType } from '../../../../../git/utils/pausedOperationStatus.utils' ;
77import { createCommandLink } from '../../../../../system/commands' ;
8+ import { createWebviewCommandLink } from '../../../../../system/webview' ;
89import { getReferenceLabel } from '../../../shared/git-utils' ;
910import '../../../shared/components/actions/action-item' ;
1011import '../../../shared/components/actions/action-nav' ;
@@ -74,20 +75,35 @@ export class GlMergeConflictWarning extends LitElement {
7475 @property ( )
7576 openEditorCommand = 'gitlens.home.openRebaseEditor' ;
7677
78+ @property ( { type : String } )
79+ webviewId ?: Parameters < typeof createWebviewCommandLink > [ 1 ] ;
80+
81+ private createWebviewCommandLink < T > ( command : string , props : T ) {
82+ if ( this . webviewId ) {
83+ return createWebviewCommandLink (
84+ command as Parameters < typeof createWebviewCommandLink > [ 0 ] ,
85+ this . webviewId ,
86+ '' ,
87+ props ,
88+ ) ;
89+ }
90+ return createCommandLink ( command as Commands , props ) ;
91+ }
92+
7793 private get onSkipUrl ( ) {
78- return createCommandLink ( this . skipCommand as Commands , this . pausedOpStatus ) ;
94+ return this . createWebviewCommandLink ( this . skipCommand , this . pausedOpStatus ) ;
7995 }
8096
8197 private get onContinueUrl ( ) {
82- return createCommandLink ( this . continueCommand as Commands , this . pausedOpStatus ) ;
98+ return this . createWebviewCommandLink ( this . continueCommand , this . pausedOpStatus ) ;
8399 }
84100
85101 private get onAbortUrl ( ) {
86- return createCommandLink ( this . abortCommand as Commands , this . pausedOpStatus ) ;
102+ return this . createWebviewCommandLink ( this . abortCommand , this . pausedOpStatus ) ;
87103 }
88104
89105 private get onOpenEditorUrl ( ) {
90- return createCommandLink ( this . openEditorCommand as Commands , this . pausedOpStatus ) ;
106+ return this . createWebviewCommandLink ( this . openEditorCommand , this . pausedOpStatus ) ;
91107 }
92108
93109 override render ( ) {
0 commit comments