Skip to content

Commit ee5093d

Browse files
authored
Merge branch 'main' into eli/release-notes-update
2 parents a0eb99b + 1468416 commit ee5093d

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

src/vs/workbench/contrib/terminal/browser/terminal.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import type { IXtermCore } from './xterm-private.js';
3232
import type { IMenu } from '../../../../platform/actions/common/actions.js';
3333
import type { Barrier } from '../../../../base/common/async.js';
3434
import type { IProgressState } from '@xterm/addon-progress';
35+
import type { IEditorOptions } from '../../../../platform/editor/common/editor.js';
3536
import type { TerminalEditorInput } from './terminalEditorInput.js';
3637

3738
export const ITerminalService = createDecorator<ITerminalService>('terminalService');
@@ -470,6 +471,7 @@ export interface ICreateTerminalOptions {
470471
export interface TerminalEditorLocation {
471472
viewColumn: GroupIdentifier | SIDE_GROUP_TYPE | ACTIVE_GROUP_TYPE | AUX_WINDOW_GROUP_TYPE;
472473
preserveFocus?: boolean;
474+
auxiliary?: IEditorOptions['auxiliary'];
473475
}
474476

475477
/**

src/vs/workbench/contrib/terminal/browser/terminalActions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ export function registerTerminalActions() {
358358
const instance = await c.service.createTerminal({
359359
location: {
360360
viewColumn: AUX_WINDOW_GROUP,
361-
}
361+
auxiliary: { compact: true },
362+
},
362363
});
363364
await instance.focusWhenReady();
364365
}

src/vs/workbench/contrib/terminal/browser/terminalEditorService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ export class TerminalEditorService extends Disposable implements ITerminalEditor
144144
options: {
145145
pinned: true,
146146
forceReload: true,
147-
preserveFocus: editorOptions?.preserveFocus
147+
preserveFocus: editorOptions?.preserveFocus,
148+
auxiliary: editorOptions?.auxiliary,
148149
}
149150
}, editorOptions?.viewColumn ?? ACTIVE_GROUP)
150151
};

src/vs/workbench/contrib/terminal/browser/terminalMenus.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function setupTerminalMenus(): void {
5454
group: TerminalMenuBarGroup.Create,
5555
command: {
5656
id: TerminalCommandId.NewInNewWindow,
57-
title: localize({ key: 'miNewInNewWindow', comment: ['&& denotes a mnemonic'] }, "New in New &&Window"),
57+
title: localize({ key: 'miNewInNewWindow', comment: ['&& denotes a mnemonic'] }, "New Terminal &&Window"),
5858
precondition: ContextKeyExpr.has(TerminalContextKeyStrings.IsOpen)
5959
},
6060
order: 2,
@@ -724,8 +724,11 @@ export function getTerminalActionBarArgs(location: ITerminalLocationOptions, pro
724724
const splitLocation = (location === TerminalLocation.Editor || (typeof location === 'object' && 'viewColumn' in location && location.viewColumn === ACTIVE_GROUP)) ? { viewColumn: SIDE_GROUP } : { splitActiveTerminal: true };
725725

726726
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.New, terminalStrings.new, undefined, true, () => terminalService.createAndFocusTerminal())));
727-
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.NewInNewWindow, terminalStrings.newInNewWindow.short, undefined, true, () => terminalService.createAndFocusTerminal({
728-
location: { viewColumn: AUX_WINDOW_GROUP }
727+
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.NewInNewWindow, terminalStrings.newInNewWindow.value, undefined, true, () => terminalService.createAndFocusTerminal({
728+
location: {
729+
viewColumn: AUX_WINDOW_GROUP,
730+
auxiliary: { compact: true },
731+
}
729732
}))));
730733
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.Split, terminalStrings.split.value, undefined, true, () => terminalService.createAndFocusTerminal({
731734
location: splitLocation

src/vs/workbench/contrib/terminal/common/terminalStrings.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ export const terminalStrings = {
2525
},
2626
moveToEditor: localize2('moveToEditor', "Move Terminal into Editor Area"),
2727
moveIntoNewWindow: localize2('moveIntoNewWindow', "Move Terminal into New Window"),
28-
newInNewWindow: {
29-
...localize2('newInNewWindow', "New Terminal in New Window"),
30-
short: localize('newInNewWindow.short', "New in New Window")
31-
},
28+
newInNewWindow: localize2('newInNewWindow', "New Terminal Window"),
3229
moveToTerminalPanel: localize2('workbench.action.terminal.moveToTerminalPanel', "Move Terminal into Panel"),
3330
changeIcon: localize2('workbench.action.terminal.changeIcon', "Change Icon..."),
3431
changeColor: localize2('workbench.action.terminal.changeColor', "Change Color..."),

0 commit comments

Comments
 (0)