File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -424,13 +424,13 @@ export class StudioActions {
424424
425425 const query = "select * from %Atelier_v1_Utils.Extension_GetMenus(?,?,?)" ;
426426 const parameters = [ menuType , this . name , selectedText ] ;
427+ const noun = sourceControl ? "source control action" : "command" ;
427428
428429 return this . api
429430 . actionQuery ( query , parameters )
430431 . then ( ( data ) => data . result . content )
431432 . then ( ( menus ) => this . prepareMenuItems ( menus , sourceControl ) )
432433 . then ( ( menuItems ) => {
433- const noun = sourceControl ? "source control action" : "command" ;
434434 const suffix = this . name ? ` on ${ this . name } ` : "" ;
435435 if ( menuItems . length == 0 ) {
436436 vscode . window . showInformationMessage ( `There are no server-side ${ noun } s to execute${ suffix } .` , "Dismiss" ) ;
@@ -441,7 +441,10 @@ export class StudioActions {
441441 title : `Pick a server-side ${ noun } to execute${ suffix } ` ,
442442 } ) ;
443443 } )
444- . then ( ( action ) => this . userAction ( action ) ) ;
444+ . then ( ( action ) => this . userAction ( action ) )
445+ . catch ( ( error ) => {
446+ handleError ( error , `Failed to get the server-side ${ noun } menu options.` ) ;
447+ } ) ;
445448 }
446449
447450 public fireOtherStudioAction ( action : OtherStudioAction , userAction ?: UserAction ) : void {
You can’t perform that action at this time.
0 commit comments