From 3b0b92cd7e47f77ddd5ccc4a9555adbf31827e6e Mon Sep 17 00:00:00 2001 From: Andy Jordan Date: Tue, 6 Dec 2022 14:04:05 -0800 Subject: [PATCH] Bump engine to 1.67.0 and update panel graphics --- media/resources/dark/ClosePanel.svg | 9 --------- media/resources/dark/MovePanelBottom.svg | 10 ---------- media/resources/dark/MovePanelLeft.svg | 10 ---------- media/resources/light/ClosePanel.svg | 9 --------- media/resources/light/MovePanelBottom.svg | 10 ---------- media/resources/light/MovePanelLeft.svg | 10 ---------- package.json | 23 ++++------------------- src/features/ExtensionCommands.ts | 2 +- 8 files changed, 5 insertions(+), 78 deletions(-) delete mode 100644 media/resources/dark/ClosePanel.svg delete mode 100644 media/resources/dark/MovePanelBottom.svg delete mode 100644 media/resources/dark/MovePanelLeft.svg delete mode 100644 media/resources/light/ClosePanel.svg delete mode 100644 media/resources/light/MovePanelBottom.svg delete mode 100644 media/resources/light/MovePanelLeft.svg diff --git a/media/resources/dark/ClosePanel.svg b/media/resources/dark/ClosePanel.svg deleted file mode 100644 index 2feafe7c06..0000000000 --- a/media/resources/dark/ClosePanel.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/media/resources/dark/MovePanelBottom.svg b/media/resources/dark/MovePanelBottom.svg deleted file mode 100644 index 8284a0976d..0000000000 --- a/media/resources/dark/MovePanelBottom.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/media/resources/dark/MovePanelLeft.svg b/media/resources/dark/MovePanelLeft.svg deleted file mode 100644 index d7f7797e4c..0000000000 --- a/media/resources/dark/MovePanelLeft.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/media/resources/light/ClosePanel.svg b/media/resources/light/ClosePanel.svg deleted file mode 100644 index 5db309662e..0000000000 --- a/media/resources/light/ClosePanel.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/media/resources/light/MovePanelBottom.svg b/media/resources/light/MovePanelBottom.svg deleted file mode 100644 index 739c933e30..0000000000 --- a/media/resources/light/MovePanelBottom.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/media/resources/light/MovePanelLeft.svg b/media/resources/light/MovePanelLeft.svg deleted file mode 100644 index 06c569437b..0000000000 --- a/media/resources/light/MovePanelLeft.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/package.json b/package.json index 7afb234360..c3223de7dd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "publisher": "ms-vscode", "description": "(Preview) Develop PowerShell modules, commands and scripts in Visual Studio Code!", "engines": { - "vscode": "^1.65.0" + "vscode": "^1.67.0" }, "license": "SEE LICENSE IN LICENSE.txt", "homepage": "https://github.com/PowerShell/vscode-powershell/blob/main/README.md", @@ -280,29 +280,19 @@ { "command": "PowerShell.ClosePanel", "title": "Close panel", - "category": "PowerShell", - "icon": { - "light": "media/resources/light/ClosePanel.svg", - "dark": "media/resources/dark/ClosePanel.svg" - } + "category": "PowerShell" }, { "command": "PowerShell.PositionPanelLeft", "title": "Move panel left", "category": "PowerShell", - "icon": { - "light": "media/resources/light/MovePanelLeft.svg", - "dark": "media/resources/dark/MovePanelLeft.svg" - } + "icon": "$(layout-sidebar-left)" }, { "command": "PowerShell.PositionPanelBottom", "title": "Move panel to bottom", "category": "PowerShell", - "icon": { - "light": "media/resources/light/MovePanelBottom.svg", - "dark": "media/resources/dark/MovePanelBottom.svg" - } + "icon": "$(layout-panel-right)" } ], "menus": { @@ -353,11 +343,6 @@ "command": "PowerShell.PositionPanelLeft", "group": "navigation@98" }, - { - "when": "editorLangId == powershell && config.powershell.buttons.showPanelMovementButtons", - "command": "PowerShell.ClosePanel", - "group": "navigation@99" - }, { "when": "editorLangId == powershell && config.powershell.buttons.showRunButtons", "command": "PowerShell.Debug.Start", diff --git a/src/features/ExtensionCommands.ts b/src/features/ExtensionCommands.ts index 8a1862fe53..dd02abf6f5 100644 --- a/src/features/ExtensionCommands.ts +++ b/src/features/ExtensionCommands.ts @@ -177,7 +177,7 @@ export class ExtensionCommandsFeature extends LanguageClientConsumer { }), vscode.commands.registerCommand("PowerShell.ClosePanel", - async () => { await vscode.commands.executeCommand("workbench.action.closePanel"); }), + async () => { await vscode.commands.executeCommand("workbench.action.togglePanel"); }), vscode.commands.registerCommand("PowerShell.PositionPanelLeft", async () => { await vscode.commands.executeCommand("workbench.action.positionPanelLeft"); }),