|
265 | 265 | "command": "PowerShell.InvokeRegisteredEditorCommand",
|
266 | 266 | "title": "Invoke Registered Editor Command",
|
267 | 267 | "category": "PowerShell"
|
| 268 | + }, |
| 269 | + { |
| 270 | + "command": "workbench.action.closePanel", |
| 271 | + "title": "Close panel", |
| 272 | + "category": "PowerShell", |
| 273 | + "icon": { |
| 274 | + "light": "resources/light/ClosePanel.svg", |
| 275 | + "dark": "resources/dark/ClosePanel.svg" |
| 276 | + } |
| 277 | + }, |
| 278 | + { |
| 279 | + "command": "workbench.action.positionPanelLeft", |
| 280 | + "title": "Move panel left", |
| 281 | + "category": "PowerShell", |
| 282 | + "icon": { |
| 283 | + "light": "resources/light/MovePanelLeft.svg", |
| 284 | + "dark": "resources/dark/MovePanelLeft.svg" |
| 285 | + } |
| 286 | + }, |
| 287 | + { |
| 288 | + "command": "workbench.action.positionPanelBottom", |
| 289 | + "title": "Move panel to bottom", |
| 290 | + "category": "PowerShell", |
| 291 | + "icon": { |
| 292 | + "light": "resources/light/MovePanelBottom.svg", |
| 293 | + "dark": "resources/dark/MovePanelBottom.svg" |
| 294 | + } |
268 | 295 | }
|
269 | 296 | ],
|
270 | 297 | "menus": {
|
|
306 | 333 | ],
|
307 | 334 | "editor/title": [
|
308 | 335 | {
|
309 |
| - "when": "editorLangId == powershell", |
| 336 | + "when": "editorLangId == powershell && config.powershell.buttons.showPanelMovementButtons", |
| 337 | + "command": "workbench.action.positionPanelBottom", |
| 338 | + "group": "navigation@97" |
| 339 | + }, |
| 340 | + { |
| 341 | + "when": "editorLangId == powershell && config.powershell.buttons.showPanelMovementButtons", |
| 342 | + "command": "workbench.action.positionPanelLeft", |
| 343 | + "group": "navigation@98" |
| 344 | + }, |
| 345 | + { |
| 346 | + "when": "editorLangId == powershell && config.powershell.buttons.showPanelMovementButtons", |
| 347 | + "command": "workbench.action.closePanel", |
| 348 | + "group": "navigation@99" |
| 349 | + }, |
| 350 | + { |
| 351 | + "when": "editorLangId == powershell && config.powershell.buttons.showRunButtons", |
310 | 352 | "command": "workbench.action.debug.start",
|
311 | 353 | "group": "navigation@100"
|
312 | 354 | },
|
313 | 355 | {
|
314 |
| - "when": "editorLangId == powershell", |
| 356 | + "when": "editorLangId == powershell && config.powershell.buttons.showRunButtons", |
315 | 357 | "command": "PowerShell.RunSelection",
|
316 | 358 | "group": "navigation@101"
|
317 | 359 | }
|
|
800 | 842 | ],
|
801 | 843 | "default": "Diagnostic",
|
802 | 844 | "description": "Defines the verbosity of output to be used when debugging a test or a block. For Pester 5 and newer the default value Diagnostic will print additional information about discovery, skipped and filtered tests, mocking and more."
|
| 845 | + }, |
| 846 | + "powershell.buttons.showRunButtons": { |
| 847 | + "type": "boolean", |
| 848 | + "default": true, |
| 849 | + "description": "Show the Run and Run Selection buttons in the editor titlebar." |
| 850 | + }, |
| 851 | + "powershell.buttons.showPanelMovementButtons": { |
| 852 | + "type": "boolean", |
| 853 | + "default": false, |
| 854 | + "description": "Show buttons in the editor titlebar for moving the panel around." |
803 | 855 | }
|
804 | 856 | }
|
805 | 857 | },
|
|
0 commit comments