|
72 | 72 | "PowerShellCommandExplorer": [
|
73 | 73 | {
|
74 | 74 | "id": "PowerShellCommands",
|
75 |
| - "name": "PowerShell Commands" |
| 75 | + "name": "PowerShell Commands", |
| 76 | + "when": "config.powershell.sideBar.CommandExplorerVisibility" |
76 | 77 | }
|
77 | 78 | ]
|
78 | 79 | },
|
|
113 | 114 | },
|
114 | 115 | {
|
115 | 116 | "command": "PowerShell.RefreshCommandsExplorer",
|
116 |
| - "title": "Refresh", |
| 117 | + "title": "Refresh Command Explorer", |
117 | 118 | "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" |
120 | 121 | },
|
121 | 122 | "category": "PowerShell"
|
122 | 123 | },
|
123 | 124 | {
|
124 | 125 | "command": "PowerShell.InsertCommand",
|
125 | 126 | "title": "Insert Command",
|
| 127 | + "icon": { |
| 128 | + "light": "resources/light/pencil.svg", |
| 129 | + "dark": "resources/dark/pencil.svg" |
| 130 | + }, |
126 | 131 | "category": "PowerShell"
|
127 | 132 | },
|
128 | 133 | {
|
|
133 | 138 | {
|
134 | 139 | "command": "PowerShell.ShowHelp",
|
135 | 140 | "title": "Get Help for Command",
|
| 141 | + "icon": { |
| 142 | + "light": "resources/light/question.svg", |
| 143 | + "dark": "resources/dark/question.svg" |
| 144 | + }, |
136 | 145 | "category": "PowerShell"
|
137 | 146 | },
|
138 | 147 | {
|
|
202 | 211 | }
|
203 | 212 | ],
|
204 | 213 | "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 | + ], |
205 | 224 | "editor/context": [
|
206 | 225 | {
|
207 | 226 | "when": "editorLangId == powershell",
|
|
224 | 243 | "view/item/context": [
|
225 | 244 | {
|
226 | 245 | "command": "PowerShell.ShowHelp",
|
227 |
| - "when": "view == PowerShellCommands" |
| 246 | + "when": "view == PowerShellCommands", |
| 247 | + "group": "inline@1" |
228 | 248 | },
|
229 | 249 | {
|
230 | 250 | "command": "PowerShell.InsertCommand",
|
231 |
| - "when": "view == PowerShellCommands" |
| 251 | + "when": "view == PowerShellCommands", |
| 252 | + "group": "inline@2" |
232 | 253 | }
|
233 | 254 | ]
|
234 | 255 | },
|
|
456 | 477 | "type": "object",
|
457 | 478 | "title": "PowerShell Configuration",
|
458 | 479 | "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 | + }, |
459 | 485 | "powershell.powerShellExePath": {
|
460 | 486 | "type": "string",
|
461 | 487 | "default": "",
|
|
0 commit comments