forked from PowerShell/vscode-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
893 lines (893 loc) · 34.3 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
{
"name": "powershell-preview",
"displayName": "PowerShell Preview",
"version": "2022.8.0",
"preview": true,
"publisher": "ms-vscode",
"description": "(Preview) Develop PowerShell modules, commands and scripts in Visual Studio Code!",
"engines": {
"vscode": "^1.59.0"
},
"license": "SEE LICENSE IN LICENSE.txt",
"homepage": "https://github.com/PowerShell/vscode-powershell/blob/main/README.md",
"categories": [
"Debuggers",
"Programming Languages",
"Snippets",
"Linters"
],
"icon": "media/PowerShell_Preview_Icon.png",
"galleryBanner": {
"color": "#ACD1EC",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/PowerShell/vscode-powershell.git"
},
"activationEvents": [
"onDebugInitialConfigurations",
"onDebugResolve:PowerShell",
"onLanguage:powershell",
"onCommand:PowerShell.NewProjectFromTemplate",
"onCommand:PowerShell.OpenExamplesFolder",
"onCommand:PowerShell.PickPSHostProcess",
"onCommand:PowerShell.PickRunspace",
"onCommand:PowerShell.SpecifyScriptArgs",
"onCommand:PowerShell.ShowSessionConsole",
"onCommand:PowerShell.ShowSessionMenu",
"onCommand:PowerShell.RestartSession",
"onCommand:PowerShell.ShowLogs",
"onCommand:PowerShell.OpenLogFolder",
"onCommand:PowerShell.GenerateBugReport",
"onCommand:PowerShell.OpenExamplesFolder",
"onCommand:PowerShell.EnableISEMode",
"onCommand:PowerShell.DisableISEMode",
"onView:PowerShellCommands"
],
"dependencies": {
"@vscode/extension-telemetry": "~0.6.2",
"node-fetch": "~2.6.7",
"semver": "~7.3.7",
"uuid": "~8.3.2",
"vscode-languageclient": "~7.0.0",
"vscode-languageserver-protocol": "~3.17.2"
},
"devDependencies": {
"@types/glob": "~7.2.0",
"@types/mocha": "~9.1.1",
"@types/mock-fs": "~4.13.1",
"@types/node": "~14.17.4",
"@types/node-fetch": "~2.6.1",
"@types/rewire": "~2.5.28",
"@types/semver": "~7.3.10",
"@types/sinon": "~10.0.13",
"@types/uuid": "~8.3.4",
"@types/vscode": "~1.59.0",
"@vscode/test-electron": "~2.1.5",
"esbuild": "^0.14.54",
"glob": "^8.0.3",
"mocha": "~10.0.0",
"mocha-multi-reporters": "~1.5.1",
"mock-fs": "~5.1.4",
"rewire": "~6.0.0",
"sinon": "~14.0.0",
"tslint": "~6.1.3",
"typescript": "~4.7.4",
"vsce": "~2.10.0"
},
"extensionDependencies": [
"vscode.powershell"
],
"main": "./out/main.js",
"scripts": {
"lint": "tslint --project tsconfig.json",
"build": "tsc --project tsconfig.json && esbuild ./src/main.ts --outdir=out --bundle --external:vscode --platform=node",
"test": "node ./out/test/runTests.js",
"package": "vsce package --no-gitHubIssueLinking",
"publish": "vsce publish"
},
"contributes": {
"breakpoints": [
{
"language": "powershell"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "PowerShell",
"title": "PowerShell",
"icon": "$(terminal-powershell)"
}
]
},
"views": {
"PowerShell": [
{
"id": "PowerShellCommands",
"name": "Command Explorer",
"when": "config.powershell.sideBar.CommandExplorerVisibility"
}
]
},
"keybindings": [
{
"command": "PowerShell.ShowHelp",
"key": "ctrl+f1",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.ExpandAlias",
"key": "shift+alt+e",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.ShowAdditionalCommands",
"key": "shift+alt+s",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.RunSelection",
"key": "f8",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId == 'powershell'",
"mac": "cmd+alt+j",
"win": "ctrl+alt+j",
"linux": "ctrl+alt+j"
}
],
"commands": [
{
"command": "PowerShell.ExpandAlias",
"title": "Expand Alias",
"category": "PowerShell"
},
{
"command": "PowerShell.EnableISEMode",
"title": "Enable ISE Mode",
"category": "PowerShell"
},
{
"command": "PowerShell.DisableISEMode",
"title": "Disable ISE Mode (restore to defaults)",
"category": "PowerShell"
},
{
"command": "PowerShell.RefreshCommandsExplorer",
"title": "Refresh Command Explorer",
"icon": "$(sync)",
"category": "PowerShell"
},
{
"command": "PowerShell.InsertCommand",
"title": "Insert Command",
"icon": "$(pencil)",
"category": "PowerShell"
},
{
"command": "PowerShell.OnlineHelp",
"title": "Get Online Help for Command (Deprecated)",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowHelp",
"title": "Get Help for Command",
"icon": "$(question)",
"category": "PowerShell"
},
{
"command": "PowerShell.Debug.Start",
"title": "Run",
"category": "PowerShell",
"icon": "$(run)"
},
{
"command": "PowerShell.RunSelection",
"title": "Run Selection",
"category": "PowerShell",
"icon": "$(debug-line-by-line)"
},
{
"command": "PowerShell.RestartSession",
"title": "Restart Current Session",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowLogs",
"title": "Show PowerShell Extension Logs",
"category": "PowerShell"
},
{
"command": "PowerShell.OpenLogFolder",
"title": "Open PowerShell Extension Logs Folder",
"category": "PowerShell"
},
{
"command": "PowerShell.GenerateBugReport",
"title": "Upload Bug Report to Github",
"category": "PowerShell"
},
{
"command": "PowerShell.OpenInISE",
"title": "Open Current File in PowerShell ISE",
"category": "PowerShell"
},
{
"command": "PowerShell.PowerShellFindModule",
"title": "Find/Install PowerShell Modules from the Gallery",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowAdditionalCommands",
"title": "Show Additional Commands from PowerShell Modules",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowSessionMenu",
"title": "Show Session Menu",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowSessionConsole",
"title": "Show Extension Terminal",
"category": "PowerShell"
},
{
"command": "PowerShell.NewProjectFromTemplate",
"title": "Create New Project from Plaster Template",
"category": "PowerShell"
},
{
"command": "PowerShell.RunPesterTestsFromFile",
"title": "Run Pester tests",
"category": "PowerShell"
},
{
"command": "PowerShell.DebugPesterTestsFromFile",
"title": "Debug Pester tests",
"category": "PowerShell"
},
{
"command": "PowerShell.OpenExamplesFolder",
"title": "Open Examples Folder",
"category": "PowerShell"
},
{
"command": "PowerShell.InvokeRegisteredEditorCommand",
"title": "Invoke Registered Editor Command",
"category": "PowerShell"
},
{
"command": "PowerShell.ClosePanel",
"title": "Close panel",
"category": "PowerShell",
"icon": {
"light": "media/resources/light/ClosePanel.svg",
"dark": "media/resources/dark/ClosePanel.svg"
}
},
{
"command": "PowerShell.PositionPanelLeft",
"title": "Move panel left",
"category": "PowerShell",
"icon": {
"light": "media/resources/light/MovePanelLeft.svg",
"dark": "media/resources/dark/MovePanelLeft.svg"
}
},
{
"command": "PowerShell.PositionPanelBottom",
"title": "Move panel to bottom",
"category": "PowerShell",
"icon": {
"light": "media/resources/light/MovePanelBottom.svg",
"dark": "media/resources/dark/MovePanelBottom.svg"
}
}
],
"menus": {
"commandPalette": [
{
"command": "PowerShell.InsertCommand",
"when": "false"
},
{
"command": "PowerShell.RefreshCommandsExplorer",
"when": "config.powershell.sideBar.CommandExplorerVisibility"
},
{
"command": "PowerShell.InvokeRegisteredEditorCommand",
"when": "false"
}
],
"explorer/context": [
{
"command": "PowerShell.RunPesterTestsFromFile",
"when": "resourceFilename =~ /\\.tests\\.ps1$/i"
},
{
"command": "PowerShell.DebugPesterTestsFromFile",
"when": "resourceFilename =~ /\\.tests\\.ps1$/i"
}
],
"editor/context": [
{
"when": "editorLangId == powershell",
"command": "PowerShell.RunSelection",
"group": "2_powershell"
},
{
"when": "editorLangId == powershell",
"command": "PowerShell.ShowHelp",
"group": "2_powershell"
}
],
"editor/title": [
{
"when": "editorLangId == powershell && config.powershell.buttons.showPanelMovementButtons",
"command": "PowerShell.PositionPanelBottom",
"group": "navigation@97"
},
{
"when": "editorLangId == powershell && config.powershell.buttons.showPanelMovementButtons",
"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",
"group": "navigation@100"
},
{
"when": "editorLangId == powershell && config.powershell.buttons.showRunButtons",
"command": "PowerShell.RunSelection",
"group": "navigation@101"
}
],
"editor/title/context": [
{
"when": "resourceFilename =~ /\\.tests\\.ps1$/i",
"command": "PowerShell.RunPesterTestsFromFile"
},
{
"when": "resourceFilename =~ /\\.tests\\.ps1$/i",
"command": "PowerShell.DebugPesterTestsFromFile"
}
],
"view/title": [
{
"command": "PowerShell.RefreshCommandsExplorer",
"when": "view == PowerShellCommands",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "PowerShell.ShowHelp",
"when": "view == PowerShellCommands",
"group": "inline@1"
},
{
"command": "PowerShell.InsertCommand",
"when": "view == PowerShellCommands",
"group": "inline@2"
}
]
},
"problemMatchers": [
{
"name": "pester",
"owner": "powershell",
"fileLocation": [
"absolute"
],
"severity": "error",
"pattern": [
{
"regexp": "^\\s*(?:\\[-\\]\\s+)(.*?)(?:\\s+\\d+\\.?\\d*\\s*m?s)(?:\\s+\\(\\d+\\.?\\d*m?s\\|\\d+\\.?\\d*m?s\\))?\\s*$",
"message": 1
},
{
"regexp": "^\\s+[Aa]t\\s+([^,]+,)?(.+?):(\\s+line\\s+)?(\\d+)(\\s+char:\\d+)?$",
"file": 2,
"line": 4
}
]
}
],
"snippets": [
{
"language": "powershell",
"path": "./snippets/PowerShell.json"
}
],
"debuggers": [
{
"type": "PowerShell",
"label": "PowerShell",
"variables": {
"PickPSHostProcess": "PowerShell.PickPSHostProcess",
"PickRunspace": "PowerShell.PickRunspace",
"SpecifyScriptArgs": "PowerShell.SpecifyScriptArgs"
},
"languages": [
"powershell"
],
"configurationSnippets": [
{
"label": "PowerShell: Launch Current File",
"description": "Launch and debug the file in the currently active editor window",
"body": {
"name": "PowerShell Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "^\"\\${file}\"",
"cwd": "^\"\\${file}\""
}
},
{
"label": "PowerShell: Launch Script",
"description": "Launch and debug the specified file or command",
"body": {
"name": "PowerShell Launch Script",
"type": "PowerShell",
"request": "launch",
"script": "^\"enter path or command to execute e.g.: \\${workspaceFolder}/src/foo.ps1 or Invoke-Pester\"",
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "PowerShell: Interactive Session",
"description": "Debug commands executed from the Extension Terminal",
"body": {
"name": "PowerShell Interactive Session",
"type": "PowerShell",
"request": "launch",
"cwd": ""
}
},
{
"label": "PowerShell: Attach to PowerShell Host Process",
"description": "Attach the debugger to a running PowerShell Host Process",
"body": {
"name": "PowerShell Attach to Host Process",
"type": "PowerShell",
"request": "attach",
"runspaceId": 1
}
},
{
"label": "PowerShell: Attach Interactive Session Runspace",
"description": "Open runspace picker to select runspace to attach debugger to",
"body": {
"name": "PowerShell Attach Interactive Session Runspace",
"type": "PowerShell",
"request": "attach",
"processId": "current"
}
}
],
"configurationAttributes": {
"launch": {
"properties": {
"script": {
"type": "string",
"description": "Optional: Absolute path to the PowerShell script to launch under the debugger."
},
"args": {
"type": "array",
"description": "Command line arguments to pass to the PowerShell script. Specify \"${command:SpecifyScriptArgs}\" if you want to be prompted for the args.",
"items": {
"type": "string"
},
"default": []
},
"cwd": {
"type": "string",
"description": "Absolute path to the working directory. Default is the current workspace folder.",
"default": "${workspaceFolder}"
},
"createTemporaryIntegratedConsole": {
"type": "boolean",
"description": "Determines whether a temporary PowerShell Extension Terminal is created for each debugging session, useful for debugging PowerShell classes and binary modules. Overrides the user setting 'powershell.debugging.createTemporaryIntegratedConsole'.",
"default": false
}
}
},
"attach": {
"properties": {
"computerName": {
"type": "string",
"description": "Optional: The computer name to which a remote session will be established. Works only on PowerShell 4 and above."
},
"processId": {
"type": "string",
"description": "The process id of the PowerShell host process to attach to. Works only on PowerShell 5 and above.",
"default": null
},
"runspaceId": {
"type": [
"string",
"number"
],
"description": "Optional: The ID of the runspace to debug in the attached process. Defaults to 1. Works only on PowerShell 5 and above.",
"default": null
},
"runspaceName": {
"type": "string",
"description": "Optional: The Name of the runspace to debug in the attached process. Works only on PowerShell 5 and above.",
"default": null
},
"customPipeName": {
"type": "string",
"description": "The custom pipe name of the PowerShell host process to attach to. Works only on PowerShell 6.2 and above.",
"default": null
}
}
}
},
"initialConfigurations": []
}
],
"configuration": {
"type": "object",
"title": "PowerShell",
"properties": {
"powershell.sideBar.CommandExplorerVisibility": {
"type": "boolean",
"default": true,
"description": "Specifies the visibility of the Command Explorer in the PowerShell Side Bar."
},
"powershell.sideBar.CommandExplorerExcludeFilter": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specify array of Modules to exclude from Command Explorer listing."
},
"powershell.powerShellAdditionalExePaths": {
"type": "object",
"description": "Specifies a list of versionName / exePath pairs where exePath points to a non-standard install location for PowerShell and versionName can be used to reference this path with the powershell.powerShellDefaultVersion setting.",
"additionalProperties": {
"type": "string"
}
},
"powershell.powerShellDefaultVersion": {
"type": "string",
"description": "Specifies the PowerShell version name, as displayed by the 'PowerShell: Show Session Menu' command, used when the extension loads e.g \"Windows PowerShell (x86)\" or \"PowerShell Core 7 (x64)\". You can specify additional PowerShell executables by using the \"powershell.powerShellAdditionalExePaths\" setting."
},
"powershell.powerShellExePath": {
"type": "string",
"default": "",
"scope": "machine",
"description": "REMOVED: Please use the \"powershell.powerShellAdditionalExePaths\" setting instead.",
"deprecationMessage": "Please use the \"powershell.powerShellAdditionalExePaths\" setting instead."
},
"powershell.promptToUpdatePowerShell": {
"type": "boolean",
"description": "Specifies whether you should be prompted to update your version of PowerShell.",
"default": true
},
"powershell.promptToUpdatePackageManagement": {
"type": "boolean",
"description": "REMOVED: Specifies whether you should be prompted to update your version of PackageManagement if it's under 1.4.6.",
"default": false,
"deprecationMessage": "This prompt has been removed as it's no longer strictly necessary to upgrade the PackageManagement module."
},
"powershell.startAsLoginShell.osx": {
"type": "boolean",
"default": true,
"description": "Starts the PowerShell extension's underlying PowerShell process as a login shell, if applicable."
},
"powershell.startAsLoginShell.linux": {
"type": "boolean",
"default": false,
"description": "Starts the PowerShell extension's underlying PowerShell process as a login shell, if applicable."
},
"powershell.startAutomatically": {
"type": "boolean",
"default": true,
"description": "Starts PowerShell extension features automatically when a PowerShell file opens. If false, to start the extension, use the 'PowerShell: Restart Current Session' command. IntelliSense, code navigation, Extension Terminal, code formatting, and other features are not enabled until the extension starts."
},
"powershell.useX86Host": {
"type": "boolean",
"default": false,
"description": "REMOVED: Uses the 32-bit language service on 64-bit Windows. This setting has no effect on 32-bit Windows or on the PowerShell extension debugger, which has its own architecture configuration.",
"deprecationMessage": "This setting was removed when the PowerShell installation searcher was added. Please use the \"powershell.powerShellAdditionalExePaths\" setting instead."
},
"powershell.enableProfileLoading": {
"type": "boolean",
"default": true,
"description": "Loads user and system-wide PowerShell profiles (profile.ps1 and Microsoft.VSCode_profile.ps1) into the PowerShell session. This affects IntelliSense and interactive script execution, but it does not affect the debugger."
},
"powershell.bugReporting.project": {
"type": "string",
"default": "https://github.com/PowerShell/vscode-powershell",
"description": "Specifies the URL of the GitHub project in which to generate bug reports."
},
"powershell.helpCompletion": {
"type": "string",
"enum": [
"Disabled",
"BlockComment",
"LineComment"
],
"default": "BlockComment",
"description": "Controls the comment-based help completion behavior triggered by typing '##'. Set the generated help style with 'BlockComment' or 'LineComment'. Disable the feature with 'Disabled'."
},
"powershell.cwd": {
"type": "string",
"default": null,
"description": "An explicit start path where the PowerShell Extension Terminal will be launched. Both the PowerShell process and the shell's location will be set to this directory. Predefined variables can be used (i.e. ${fileDirname} to use the current opened file's directory)."
},
"powershell.scriptAnalysis.enable": {
"type": "boolean",
"default": true,
"description": "Enables real-time script analysis from PowerShell Script Analyzer. Uses the newest installed version of the PSScriptAnalyzer module or the version bundled with this extension, if it is newer."
},
"powershell.scriptAnalysis.settingsPath": {
"type": "string",
"default": "PSScriptAnalyzerSettings.psd1",
"description": "Specifies the path to a PowerShell Script Analyzer settings file. To override the default settings for all projects, enter an absolute path, or enter a path relative to your workspace."
},
"powershell.codeFolding.enable": {
"type": "boolean",
"default": true,
"description": "Enables syntax based code folding. When disabled, the default indentation based code folding is used."
},
"powershell.codeFolding.showLastLine": {
"type": "boolean",
"default": true,
"description": "Shows the last line of a folded section similar to the default VSCode folding style. When disabled, the entire folded region is hidden."
},
"powershell.codeFormatting.autoCorrectAliases": {
"type": "boolean",
"default": false,
"description": "Replaces aliases with their aliased name."
},
"powershell.codeFormatting.preset": {
"type": "string",
"enum": [
"Custom",
"Allman",
"OTBS",
"Stroustrup"
],
"default": "Custom",
"description": "Sets the codeformatting options to follow the given indent style in a way that is compatible with PowerShell syntax. For more information about the brace styles please refer to https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/81."
},
"powershell.codeFormatting.openBraceOnSameLine": {
"type": "boolean",
"default": true,
"description": "Places open brace on the same line as its associated statement."
},
"powershell.codeFormatting.newLineAfterOpenBrace": {
"type": "boolean",
"default": true,
"description": "Adds a newline (line break) after an open brace."
},
"powershell.codeFormatting.newLineAfterCloseBrace": {
"type": "boolean",
"default": true,
"description": "Adds a newline (line break) after a closing brace."
},
"powershell.codeFormatting.pipelineIndentationStyle": {
"type": "string",
"enum": [
"IncreaseIndentationForFirstPipeline",
"IncreaseIndentationAfterEveryPipeline",
"NoIndentation",
"None"
],
"default": "NoIndentation",
"description": "Multi-line pipeline style settings (default: NoIndentation)."
},
"powershell.codeFormatting.whitespaceBeforeOpenBrace": {
"type": "boolean",
"default": true,
"description": "Adds a space between a keyword and its associated scriptblock expression."
},
"powershell.codeFormatting.whitespaceBeforeOpenParen": {
"type": "boolean",
"default": true,
"description": "Adds a space between a keyword (if, elseif, while, switch, etc) and its associated conditional expression."
},
"powershell.codeFormatting.whitespaceAroundOperator": {
"type": "boolean",
"default": true,
"description": "Adds spaces before and after an operator ('=', '+', '-', etc.)."
},
"powershell.codeFormatting.whitespaceAfterSeparator": {
"type": "boolean",
"default": true,
"description": "Adds a space after a separator (',' and ';')."
},
"powershell.codeFormatting.whitespaceInsideBrace": {
"type": "boolean",
"default": true,
"description": "Adds a space after an opening brace ('{') and before a closing brace ('}')."
},
"powershell.codeFormatting.whitespaceBetweenParameters": {
"type": "boolean",
"default": false,
"description": "Removes redundant whitespace between parameters."
},
"powershell.codeFormatting.whitespaceAroundPipe": {
"type": "boolean",
"default": true,
"description": "REMOVED. Please use the \"powershell.codeFormatting.addWhitespaceAroundPipe\" setting instead. If you've used this setting before, we have moved it for you automatically.",
"deprecationMessage": "Please use the \"powershell.codeFormatting.addWhitespaceAroundPipe\" setting instead. If you've used this setting before, we have moved it for you automatically."
},
"powershell.codeFormatting.addWhitespaceAroundPipe": {
"type": "boolean",
"default": true,
"description": "Adds a space before and after the pipeline operator ('|') if it is missing."
},
"powershell.codeFormatting.trimWhitespaceAroundPipe": {
"type": "boolean",
"default": false,
"description": "Trims extraneous whitespace (more than 1 character) before and after the pipeline operator ('|')."
},
"powershell.codeFormatting.ignoreOneLineBlock": {
"type": "boolean",
"default": true,
"description": "Does not reformat one-line code blocks, such as \"if (...) {...} else {...}\"."
},
"powershell.codeFormatting.alignPropertyValuePairs": {
"type": "boolean",
"default": true,
"description": "Align assignment statements in a hashtable or a DSC Configuration."
},
"powershell.codeFormatting.useConstantStrings": {
"type": "boolean",
"default": false,
"description": "Use single quotes if a string is not interpolated and its value does not contain a single quote."
},
"powershell.codeFormatting.useCorrectCasing": {
"type": "boolean",
"default": false,
"description": "Use correct casing for cmdlets."
},
"powershell.integratedConsole.showOnStartup": {
"type": "boolean",
"default": true,
"description": "Shows the Extension Terminal when the PowerShell extension is initialized."
},
"powershell.integratedConsole.focusConsoleOnExecute": {
"type": "boolean",
"default": true,
"description": "Switches focus to the console when a script selection is run or a script file is debugged. This is an accessibility feature. To disable it, set to false."
},
"powershell.integratedConsole.useLegacyReadLine": {
"type": "boolean",
"default": false,
"description": "Falls back to the legacy ReadLine experience. This will disable the use of PSReadLine in the PowerShell Extension Terminal."
},
"powershell.integratedConsole.forceClearScrollbackBuffer": {
"type": "boolean",
"description": "Use the vscode API to clear the terminal since that's the only reliable way to clear the scrollback buffer. Turn this on if you're used to 'Clear-Host' clearing scroll history as well as clear-terminal-via-lsp."
},
"powershell.integratedConsole.suppressStartupBanner": {
"type": "boolean",
"default": false,
"description": "Do not show the Powershell Extension Terminal banner on launch"
},
"powershell.debugging.createTemporaryIntegratedConsole": {
"type": "boolean",
"default": false,
"description": "Determines whether a temporary PowerShell Extension Terminal is created for each debugging session. Useful for debugging PowerShell classes and binary modules."
},
"powershell.developer.bundledModulesPath": {
"type": "string",
"description": "Specifies an alternate path to the folder containing modules that are bundled with the PowerShell extension (i.e. PowerShell Editor Services, PSScriptAnalyzer, Plaster)"
},
"powershell.developer.editorServicesLogLevel": {
"type": "string",
"enum": [
"Diagnostic",
"Verbose",
"Normal",
"Warning",
"Error",
"None"
],
"default": "Normal",
"description": "Sets the logging verbosity level for the PowerShell Editor Services host executable. Valid values are 'Diagnostic', 'Verbose', 'Normal', 'Warning', 'Error', and 'None'"
},
"powershell.developer.editorServicesWaitForDebugger": {
"type": "boolean",
"default": false,
"description": "Launches the language service with the /waitForDebugger flag to force it to wait for a .NET debugger to attach before proceeding."
},
"powershell.developer.featureFlags": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "An array of strings that enable experimental features in the PowerShell extension."
},
"powershell.developer.waitForSessionFileTimeoutSeconds": {
"type": "number",
"default": 240,
"description": "When the PowerShell extension is starting up, it checks for a session file in order to connect to the language server. This setting determines how long until checking for the session file times out. (default is 240 seconds or 4 minutes)"
},
"powershell.pester.useLegacyCodeLens": {
"type": "boolean",
"default": true,
"description": "Use a CodeLens that is compatible with Pester 4. Disabling this will show 'Run Tests' on all It, Describe and Context blocks, and will correctly work only with Pester 5 and newer."
},
"powershell.pester.codeLens": {
"type": "boolean",
"default": true,
"description": "This setting controls the appearance of the 'Run Tests' and 'Debug Tests' CodeLenses that appears above Pester tests."
},
"powershell.pester.outputVerbosity": {
"type": "string",
"enum": [
"FromPreference",
"None",
"Minimal",
"Normal",
"Detailed",
"Diagnostic"
],
"default": "FromPreference",
"description": "Defines the verbosity of output to be used. For Pester 5 and newer the default value FromPreference, will use the Output settings from the $PesterPreference defined in the caller context, and will default to Normal if there is none. For Pester 4 the FromPreference and Normal options map to All, and Minimal option maps to Fails."
},
"powershell.pester.debugOutputVerbosity": {
"type": "string",
"enum": [
"None",
"Minimal",
"Normal",
"Detailed",
"Diagnostic"
],
"default": "Diagnostic",
"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."
},
"powershell.buttons.showRunButtons": {
"type": "boolean",
"default": true,
"description": "Show the Run and Run Selection buttons in the editor titlebar."
},
"powershell.buttons.showPanelMovementButtons": {
"type": "boolean",
"default": false,
"description": "Show buttons in the editor titlebar for moving the panel around."
}
}
},
"capabilities": {
"untrustedWorkspaces": {
"supported": false
}
},
"configurationDefaults": {
"[powershell]": {
"debug.saveBeforeStart": "nonUntitledEditorsInActiveGroup",
"editor.semanticHighlighting.enabled": false,
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?"
}
},
"themes": [
{
"label": "PowerShell ISE",
"uiTheme": "vs",
"path": "./themes/theme-psise/theme.json"
}
]
},
"private": true
}