@@ -696,54 +696,56 @@ export function setupTerminalMenus(): void {
696696 group : '2_files'
697697 } ) ;
698698
699- MenuRegistry . appendMenuItem ( MenuId . EditorTitle , {
700- command : {
701- id : TerminalCommandId . CreateTerminalEditorSameGroup ,
702- title : terminalStrings . new ,
703- icon : Codicon . plus
704- } ,
705- alt : {
706- id : TerminalCommandId . Split ,
707- title : terminalStrings . split . value ,
708- icon : Codicon . splitHorizontal
709- } ,
710- group : 'navigation' ,
711- order : 0 ,
712- when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal )
713- } ) ;
714- MenuRegistry . appendMenuItem ( MenuId . EditorTitle , {
715- command : {
716- id : TerminalCommandId . Clear ,
717- title : localize ( 'workbench.action.terminal.clearLong' , "Clear Terminal" ) ,
718- icon : Codicon . clearAll
719- } ,
720- group : 'navigation' ,
721- order : 6 ,
722- when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal ) ,
723- isHiddenByDefault : true
724- } ) ;
725- MenuRegistry . appendMenuItem ( MenuId . EditorTitle , {
726- command : {
727- id : TerminalCommandId . RunActiveFile ,
728- title : localize ( 'workbench.action.terminal.runActiveFile' , "Run Active File" ) ,
729- icon : Codicon . run
730- } ,
731- group : 'navigation' ,
732- order : 7 ,
733- when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal ) ,
734- isHiddenByDefault : true
735- } ) ;
736- MenuRegistry . appendMenuItem ( MenuId . EditorTitle , {
737- command : {
738- id : TerminalCommandId . RunSelectedText ,
739- title : localize ( 'workbench.action.terminal.runSelectedText' , "Run Selected Text" ) ,
740- icon : Codicon . selection
741- } ,
742- group : 'navigation' ,
743- order : 8 ,
744- when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal ) ,
745- isHiddenByDefault : true
746- } ) ;
699+ for ( const menuId of [ MenuId . EditorTitle , MenuId . CompactWindowEditorTitle ] ) {
700+ MenuRegistry . appendMenuItem ( menuId , {
701+ command : {
702+ id : TerminalCommandId . CreateTerminalEditorSameGroup ,
703+ title : terminalStrings . new ,
704+ icon : Codicon . plus
705+ } ,
706+ alt : {
707+ id : TerminalCommandId . Split ,
708+ title : terminalStrings . split . value ,
709+ icon : Codicon . splitHorizontal
710+ } ,
711+ group : 'navigation' ,
712+ order : 0 ,
713+ when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal )
714+ } ) ;
715+ MenuRegistry . appendMenuItem ( menuId , {
716+ command : {
717+ id : TerminalCommandId . Clear ,
718+ title : localize ( 'workbench.action.terminal.clearLong' , "Clear Terminal" ) ,
719+ icon : Codicon . clearAll
720+ } ,
721+ group : 'navigation' ,
722+ order : 6 ,
723+ when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal ) ,
724+ isHiddenByDefault : true
725+ } ) ;
726+ MenuRegistry . appendMenuItem ( menuId , {
727+ command : {
728+ id : TerminalCommandId . RunActiveFile ,
729+ title : localize ( 'workbench.action.terminal.runActiveFile' , "Run Active File" ) ,
730+ icon : Codicon . run
731+ } ,
732+ group : 'navigation' ,
733+ order : 7 ,
734+ when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal ) ,
735+ isHiddenByDefault : true
736+ } ) ;
737+ MenuRegistry . appendMenuItem ( menuId , {
738+ command : {
739+ id : TerminalCommandId . RunSelectedText ,
740+ title : localize ( 'workbench.action.terminal.runSelectedText' , "Run Selected Text" ) ,
741+ icon : Codicon . selection
742+ } ,
743+ group : 'navigation' ,
744+ order : 8 ,
745+ when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal ) ,
746+ isHiddenByDefault : true
747+ } ) ;
748+ }
747749}
748750
749751export function getTerminalActionBarArgs ( location : ITerminalLocationOptions , profiles : ITerminalProfile [ ] , defaultProfileName : string , contributedProfiles : readonly IExtensionTerminalProfile [ ] , terminalService : ITerminalService , dropdownMenu : IMenu , disposableStore : DisposableStore ) : {
0 commit comments