mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
aux - leave compact mode on certain editor events and restore compact mode for terminals (#260302) (#260335)
This commit is contained in:
@@ -303,6 +303,16 @@ export class AuxiliaryEditorPart {
|
||||
}
|
||||
}));
|
||||
|
||||
disposables.add(editorPart.onDidAddGroup(() => {
|
||||
updateCompact(false); // leave compact mode when a group is added
|
||||
}));
|
||||
|
||||
disposables.add(editorPart.activeGroup.onDidActiveEditorChange(() => {
|
||||
if (editorPart.activeGroup.count > 1) {
|
||||
updateCompact(false); // leave compact mode when more than 1 editor is active
|
||||
}
|
||||
}));
|
||||
|
||||
// Have a scoped instantiation service that is scoped to the auxiliary window
|
||||
const scopedInstantiationService = disposables.add(scopedEditorPartInstantiationService.createChild(new ServiceCollection(
|
||||
[IStatusbarService, this.statusbarService.createScoped(statusbarPart, disposables)]
|
||||
|
||||
@@ -360,7 +360,8 @@ export function registerTerminalActions() {
|
||||
run: async (c) => {
|
||||
const instance = await c.service.createTerminal({
|
||||
location: {
|
||||
viewColumn: AUX_WINDOW_GROUP
|
||||
viewColumn: AUX_WINDOW_GROUP,
|
||||
auxiliary: { compact: true },
|
||||
},
|
||||
});
|
||||
await instance.focusWhenReady();
|
||||
|
||||
@@ -765,7 +765,8 @@ export function getTerminalActionBarArgs(location: ITerminalLocationOptions, pro
|
||||
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.New, terminalStrings.new, undefined, true, () => terminalService.createAndFocusTerminal())));
|
||||
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.NewInNewWindow, terminalStrings.newInNewWindow.value, undefined, true, () => terminalService.createAndFocusTerminal({
|
||||
location: {
|
||||
viewColumn: AUX_WINDOW_GROUP
|
||||
viewColumn: AUX_WINDOW_GROUP,
|
||||
auxiliary: { compact: true },
|
||||
}
|
||||
}))));
|
||||
dropdownActions.push(disposableStore.add(new Action(TerminalCommandId.Split, terminalStrings.split.value, undefined, true, () => terminalService.createAndFocusTerminal({
|
||||
|
||||
Reference in New Issue
Block a user