@@ -340,7 +340,7 @@ class StudioActions {
340340 . then ( ( action ) => this . userAction ( action ) ) ;
341341 }
342342
343- public fireOtherStudioAction ( action : OtherStudioAction ) {
343+ public fireOtherStudioAction ( action : OtherStudioAction , userAction ? ) {
344344 const actionObject = {
345345 id : action . toString ( ) ,
346346 label : getOtherStudioActionLabel ( action ) ,
@@ -354,6 +354,14 @@ class StudioActions {
354354 this . userAction ( actionObject , false , "" , "" , 1 ) ;
355355 }
356356 } ) ;
357+ } else if ( userAction ) {
358+ this . processUserAction ( userAction ) . then ( ( answer ) => {
359+ if ( answer ) {
360+ answer . msg || answer . msg === ""
361+ ? this . userAction ( actionObject , true , answer . answer , answer . msg , 1 )
362+ : this . userAction ( actionObject , true , answer , "" , 1 ) ;
363+ }
364+ } ) ;
357365 } else {
358366 this . userAction ( actionObject , false , "" , "" , 1 ) ;
359367 }
@@ -420,7 +428,7 @@ export async function _contextMenu(sourceControl: boolean, node: PackageNode | C
420428 return studioActions && studioActions . getMenu ( StudioMenuType . Context , sourceControl ) ;
421429}
422430
423- export async function fireOtherStudioAction ( action : OtherStudioAction , uri ?: vscode . Uri ) : Promise < void > {
431+ export async function fireOtherStudioAction ( action : OtherStudioAction , uri ?: vscode . Uri , userAction ? ) : Promise < void > {
424432 const studioActions = new StudioActions ( uri ) ;
425- return studioActions && studioActions . fireOtherStudioAction ( action ) ;
433+ return studioActions && studioActions . fireOtherStudioAction ( action , userAction ) ;
426434}
0 commit comments