From b9c96380a9cfa5f739523b69a988947b863ab786 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:34:00 -0800 Subject: [PATCH] Don't make the Command Explorer visible by default But turn it on in ISE mode. --- package.json | 2 +- src/features/ISECompatibility.ts | 3 ++- src/settings.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1c2ee5dda6..f762f84ef6 100644 --- a/package.json +++ b/package.json @@ -611,7 +611,7 @@ "properties": { "powershell.sideBar.CommandExplorerVisibility": { "type": "boolean", - "default": true, + "default": false, "markdownDescription": "Specifies the visibility of the Command Explorer in the side bar." }, "powershell.sideBar.CommandExplorerExcludeFilter": { diff --git a/src/features/ISECompatibility.ts b/src/features/ISECompatibility.ts index ec56274506..8cb96711fa 100644 --- a/src/features/ISECompatibility.ts +++ b/src/features/ISECompatibility.ts @@ -22,7 +22,8 @@ export class ISECompatibilityFeature implements vscode.Disposable { { path: "workbench", name: "colorTheme", value: "PowerShell ISE" }, { path: "editor", name: "wordSeparators", value: "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?" }, { path: "powershell.buttons", name: "showPanelMovementButtons", value: true }, - { path: "powershell.codeFolding", name: "showLastLine", value: false } + { path: "powershell.codeFolding", name: "showLastLine", value: false }, + { path: "powershell.sideBar", name: "CommandExplorerVisibility", value: true } ]; private commands: vscode.Disposable[] = []; diff --git a/src/settings.ts b/src/settings.ts index 87294a2c4f..878cac9036 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -140,7 +140,7 @@ class IntegratedConsoleSettings extends PartialSettings { } class SideBarSettings extends PartialSettings { - CommandExplorerVisibility = true; + CommandExplorerVisibility = false; CommandExplorerExcludeFilter: string[] = []; }