@@ -711,6 +711,39 @@ export function setupTerminalMenus(): void {
711711 order : 0 ,
712712 when : ResourceContextKey . Scheme . isEqualTo ( Schemas . vscodeTerminal )
713713 } ) ;
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+ } ) ;
714747}
715748
716749export function getTerminalActionBarArgs ( location : ITerminalLocationOptions , profiles : ITerminalProfile [ ] , defaultProfileName : string , contributedProfiles : readonly IExtensionTerminalProfile [ ] , terminalService : ITerminalService , dropdownMenu : IMenu , disposableStore : DisposableStore ) : {
0 commit comments