diff --git a/package.json b/package.json index 3b447e6076..978bf09aa2 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,8 @@ "PowerShellCommandExplorer": [ { "id": "PowerShellCommands", - "name": "PowerShell Commands" + "name": "PowerShell Commands", + "when": "config.powershell.sideBar.CommandExplorerVisibility" } ] }, @@ -113,16 +114,20 @@ }, { "command": "PowerShell.RefreshCommandsExplorer", - "title": "Refresh", + "title": "Refresh Command Explorer", "icon": { - "light": "resources/light/refresh.svg", - "dark": "resources/dark/refresh.svg" + "light": "resources/light/sync.svg", + "dark": "resources/dark/sync.svg" }, "category": "PowerShell" }, { "command": "PowerShell.InsertCommand", "title": "Insert Command", + "icon": { + "light": "resources/light/pencil.svg", + "dark": "resources/dark/pencil.svg" + }, "category": "PowerShell" }, { @@ -133,6 +138,10 @@ { "command": "PowerShell.ShowHelp", "title": "Get Help for Command", + "icon": { + "light": "resources/light/question.svg", + "dark": "resources/dark/question.svg" + }, "category": "PowerShell" }, { @@ -202,6 +211,16 @@ } ], "menus": { + "commandPalette": [ + { + "command": "PowerShell.InsertCommand", + "when": "false" + }, + { + "command": "PowerShell.RefreshCommandsExplorer", + "when": "config.powershell.sideBar.CommandExplorerVisibility" + } + ], "editor/context": [ { "when": "editorLangId == powershell", @@ -224,11 +243,13 @@ "view/item/context": [ { "command": "PowerShell.ShowHelp", - "when": "view == PowerShellCommands" + "when": "view == PowerShellCommands", + "group": "inline@1" }, { "command": "PowerShell.InsertCommand", - "when": "view == PowerShellCommands" + "when": "view == PowerShellCommands", + "group": "inline@2" } ] }, @@ -456,6 +477,11 @@ "type": "object", "title": "PowerShell Configuration", "properties": { + "powershell.sideBar.CommandExplorerVisibility": { + "type": "boolean", + "default":true, + "description": "Specifies the visibility of the Command Explorer in the PowerShell Side Bar." + }, "powershell.powerShellExePath": { "type": "string", "default": "", diff --git a/resources/dark/pencil.svg b/resources/dark/pencil.svg new file mode 100644 index 0000000000..e4ba2d45a8 --- /dev/null +++ b/resources/dark/pencil.svg @@ -0,0 +1,56 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/resources/dark/question.svg b/resources/dark/question.svg new file mode 100644 index 0000000000..b803dbf391 --- /dev/null +++ b/resources/dark/question.svg @@ -0,0 +1,56 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/resources/dark/refresh.svg b/resources/dark/refresh.svg deleted file mode 100644 index d79fdaa4e8..0000000000 --- a/resources/dark/refresh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/resources/dark/sync.svg b/resources/dark/sync.svg new file mode 100644 index 0000000000..f3d5a1bc00 --- /dev/null +++ b/resources/dark/sync.svg @@ -0,0 +1,56 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/resources/light/pencil.svg b/resources/light/pencil.svg new file mode 100644 index 0000000000..8702f4dcec --- /dev/null +++ b/resources/light/pencil.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/light/question.svg b/resources/light/question.svg new file mode 100644 index 0000000000..a6fc75310c --- /dev/null +++ b/resources/light/question.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/light/refresh.svg b/resources/light/refresh.svg deleted file mode 100644 index e034574819..0000000000 --- a/resources/light/refresh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/resources/light/sync.svg b/resources/light/sync.svg new file mode 100644 index 0000000000..411f549b58 --- /dev/null +++ b/resources/light/sync.svg @@ -0,0 +1,55 @@ + + + + + + image/svg+xml + + + + + + + +