Skip to content

Commit 9af4268

Browse files
corbobTylerLeonhardt
authored andcommitted
Add icons and enable setting for Command Explorer (#1638)
* Add icons for Command Explorer Change refrech icon to use octicons (https://octicons.github.com) * Update Command Palette Reword Refresh to specify what it's Refreshing. Remove Insert from Command Palette. * Add Configuration to toggle Command Explorer visibility. * sidebar -> Side Bar Be consistent with UI
1 parent 1dc918d commit 9af4268

File tree

9 files changed

+257
-8
lines changed

9 files changed

+257
-8
lines changed

package.json

+32-6
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"PowerShellCommandExplorer": [
7373
{
7474
"id": "PowerShellCommands",
75-
"name": "PowerShell Commands"
75+
"name": "PowerShell Commands",
76+
"when": "config.powershell.sideBar.CommandExplorerVisibility"
7677
}
7778
]
7879
},
@@ -113,16 +114,20 @@
113114
},
114115
{
115116
"command": "PowerShell.RefreshCommandsExplorer",
116-
"title": "Refresh",
117+
"title": "Refresh Command Explorer",
117118
"icon": {
118-
"light": "resources/light/refresh.svg",
119-
"dark": "resources/dark/refresh.svg"
119+
"light": "resources/light/sync.svg",
120+
"dark": "resources/dark/sync.svg"
120121
},
121122
"category": "PowerShell"
122123
},
123124
{
124125
"command": "PowerShell.InsertCommand",
125126
"title": "Insert Command",
127+
"icon": {
128+
"light": "resources/light/pencil.svg",
129+
"dark": "resources/dark/pencil.svg"
130+
},
126131
"category": "PowerShell"
127132
},
128133
{
@@ -133,6 +138,10 @@
133138
{
134139
"command": "PowerShell.ShowHelp",
135140
"title": "Get Help for Command",
141+
"icon": {
142+
"light": "resources/light/question.svg",
143+
"dark": "resources/dark/question.svg"
144+
},
136145
"category": "PowerShell"
137146
},
138147
{
@@ -202,6 +211,16 @@
202211
}
203212
],
204213
"menus": {
214+
"commandPalette": [
215+
{
216+
"command": "PowerShell.InsertCommand",
217+
"when": "false"
218+
},
219+
{
220+
"command": "PowerShell.RefreshCommandsExplorer",
221+
"when": "config.powershell.sideBar.CommandExplorerVisibility"
222+
}
223+
],
205224
"editor/context": [
206225
{
207226
"when": "editorLangId == powershell",
@@ -224,11 +243,13 @@
224243
"view/item/context": [
225244
{
226245
"command": "PowerShell.ShowHelp",
227-
"when": "view == PowerShellCommands"
246+
"when": "view == PowerShellCommands",
247+
"group": "inline@1"
228248
},
229249
{
230250
"command": "PowerShell.InsertCommand",
231-
"when": "view == PowerShellCommands"
251+
"when": "view == PowerShellCommands",
252+
"group": "inline@2"
232253
}
233254
]
234255
},
@@ -456,6 +477,11 @@
456477
"type": "object",
457478
"title": "PowerShell Configuration",
458479
"properties": {
480+
"powershell.sideBar.CommandExplorerVisibility": {
481+
"type": "boolean",
482+
"default":true,
483+
"description": "Specifies the visibility of the Command Explorer in the PowerShell Side Bar."
484+
},
459485
"powershell.powerShellExePath": {
460486
"type": "string",
461487
"default": "",

resources/dark/pencil.svg

+56
Loading

resources/dark/question.svg

+56
Loading

resources/dark/refresh.svg

-1
This file was deleted.

resources/dark/sync.svg

+56
Loading

resources/light/pencil.svg

+1
Loading

resources/light/question.svg

+1
Loading

resources/light/refresh.svg

-1
This file was deleted.

resources/light/sync.svg

+55
Loading

0 commit comments

Comments
 (0)