File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -854,12 +854,18 @@ export function registerTerminalActions() {
854
854
} ,
855
855
precondition : sharedWhenClause . terminalAvailable_and_singularSelection ,
856
856
run : async ( c , accessor ) => {
857
+ const terminalGroupService = accessor . get ( ITerminalGroupService ) ;
857
858
const notificationService = accessor . get ( INotificationService ) ;
858
859
const instances = getSelectedInstances ( accessor ) ;
859
860
const firstInstance = instances ?. [ 0 ] ;
860
861
if ( ! firstInstance ) {
861
862
return ;
862
863
}
864
+
865
+ if ( terminalGroupService . lastAccessedMenu === 'inline-tab' ) {
866
+ return renameWithQuickPick ( c , accessor , firstInstance ) ;
867
+ }
868
+
863
869
c . service . setEditingTerminal ( firstInstance ) ;
864
870
c . service . setEditable ( firstInstance , {
865
871
validationMessage : value => validateTerminalName ( value ) ,
You can’t perform that action at this time.
0 commit comments