File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
src/vs/workbench/contrib/terminal Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import { IConfigurationResolverService } from '../../../services/configurationRe
47
47
import { ConfigurationResolverExpression } from '../../../services/configurationResolver/common/configurationResolverExpression.js' ;
48
48
import { editorGroupToColumn } from '../../../services/editor/common/editorGroupColumn.js' ;
49
49
import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js' ;
50
- import { SIDE_GROUP } from '../../../services/editor/common/editorService.js' ;
50
+ import { AUX_WINDOW_GROUP , SIDE_GROUP } from '../../../services/editor/common/editorService.js' ;
51
51
import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js' ;
52
52
import { IPreferencesService } from '../../../services/preferences/common/preferences.js' ;
53
53
import { IRemoteAgentService } from '../../../services/remote/common/remoteAgentService.js' ;
@@ -344,6 +344,17 @@ export function registerTerminalActions() {
344
344
}
345
345
} ) ;
346
346
347
+ registerTerminalAction ( {
348
+ id : TerminalCommandId . NewInNewWindow ,
349
+ title : terminalStrings . newInNewWindow ,
350
+ run : async ( c ) => {
351
+ const instance = await c . service . createTerminal ( {
352
+ location : { viewColumn : AUX_WINDOW_GROUP }
353
+ } ) ;
354
+ await instance . focusWhenReady ( ) ;
355
+ }
356
+ } ) ;
357
+
347
358
registerContextualInstanceAction ( {
348
359
id : TerminalCommandId . MoveToEditor ,
349
360
title : terminalStrings . moveToEditor ,
Original file line number Diff line number Diff line change @@ -480,6 +480,7 @@ export const enum TerminalCommandId {
480
480
MoveToEditor = 'workbench.action.terminal.moveToEditor' ,
481
481
MoveToTerminalPanel = 'workbench.action.terminal.moveToTerminalPanel' ,
482
482
MoveIntoNewWindow = 'workbench.action.terminal.moveIntoNewWindow' ,
483
+ NewInNewWindow = 'workbench.action.terminal.newInNewWindow' ,
483
484
SetDimensions = 'workbench.action.terminal.setDimensions' ,
484
485
FocusHover = 'workbench.action.terminal.focusHover' ,
485
486
ShowEnvironmentContributions = 'workbench.action.terminal.showEnvironmentContributions' ,
@@ -513,6 +514,7 @@ export const DEFAULT_COMMANDS_TO_SKIP_SHELL: string[] = [
513
514
TerminalCommandId . MoveToTerminalPanel ,
514
515
TerminalCommandId . NewInActiveWorkspace ,
515
516
TerminalCommandId . New ,
517
+ TerminalCommandId . NewInNewWindow ,
516
518
TerminalCommandId . Paste ,
517
519
TerminalCommandId . PasteSelection ,
518
520
TerminalCommandId . ResizePaneDown ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export const terminalStrings = {
25
25
} ,
26
26
moveToEditor : localize2 ( 'moveToEditor' , "Move Terminal into Editor Area" ) ,
27
27
moveIntoNewWindow : localize2 ( 'moveIntoNewWindow' , "Move Terminal into New Window" ) ,
28
+ newInNewWindow : localize2 ( 'newInNewWindow' , "New Terminal in New Window" ) ,
28
29
moveToTerminalPanel : localize2 ( 'workbench.action.terminal.moveToTerminalPanel' , "Move Terminal into Panel" ) ,
29
30
changeIcon : localize2 ( 'workbench.action.terminal.changeIcon' , "Change Icon..." ) ,
30
31
changeColor : localize2 ( 'workbench.action.terminal.changeColor' , "Change Color..." ) ,
You can’t perform that action at this time.
0 commit comments