forked from PowerShell/vscode-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
695 lines (695 loc) · 25.4 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
{
"name": "powershell-preview",
"displayName": "PowerShell Preview",
"version": "2019.9.0",
"preview": true,
"publisher": "ms-vscode",
"description": "(Preview) Develop PowerShell scripts in Visual Studio Code!",
"engines": {
"vscode": "^1.34.0"
},
"license": "SEE LICENSE IN LICENSE.txt",
"homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md",
"categories": [
"Debuggers",
"Programming Languages",
"Snippets",
"Linters"
],
"icon": "images/PowerShell_icon.png",
"galleryBanner": {
"color": "#ACD1EC",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/PowerShell/vscode-powershell.git"
},
"main": "./out/src/main",
"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",
"onView:PowerShellCommands"
],
"dependencies": {
"node-fetch": "^2.6.0",
"semver": "^6.3.0",
"vscode-extension-telemetry": "~0.1.2",
"vscode-languageclient": "~5.2.1"
},
"devDependencies": {
"@types/mocha": "~5.2.7",
"@types/node": "~10.11.0",
"@types/node-fetch": "^2.5.0",
"@types/rewire": "^2.5.28",
"@types/semver": "^6.0.2",
"mocha": "~5.2.0",
"mocha-junit-reporter": "~1.23.1",
"mocha-multi-reporters": "~1.1.7",
"rewire": "~4.0.1",
"tslint": "~5.20.0",
"typescript": "~3.5.3",
"vsce": "~1.66.0",
"vscode": "~1.1.36"
},
"extensionDependencies": [
"vscode.powershell"
],
"scripts": {
"compile": "tsc -v && tsc -p ./ && tslint -p ./",
"compile-watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"contributes": {
"breakpoints": [
{
"language": "powershell"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "PowerShellCommandExplorer",
"title": "PowerShell Command Explorer",
"icon": "media/pwsh.svg"
}
]
},
"views": {
"PowerShellCommandExplorer": [
{
"id": "PowerShellCommands",
"name": "PowerShell Commands",
"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.RefreshCommandsExplorer",
"title": "Refresh Command Explorer",
"icon": {
"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"
},
{
"command": "PowerShell.OnlineHelp",
"title": "Get Online Help for Command (Deprecated)",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowHelp",
"title": "Get Help for Command",
"icon": {
"light": "resources/light/question.svg",
"dark": "resources/dark/question.svg"
},
"category": "PowerShell"
},
{
"command": "PowerShell.RunSelection",
"title": "Run Selection",
"category": "PowerShell"
},
{
"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.SelectPSSARules",
"title": "Select PSScriptAnalyzer Rules",
"category": "PowerShell"
},
{
"command": "PowerShell.ShowSessionConsole",
"title": "Show Integrated Console",
"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"
}
],
"menus": {
"commandPalette": [
{
"command": "PowerShell.InsertCommand",
"when": "false"
},
{
"command": "PowerShell.RefreshCommandsExplorer",
"when": "config.powershell.sideBar.CommandExplorerVisibility"
}
],
"editor/context": [
{
"when": "editorLangId == powershell",
"command": "PowerShell.RunSelection",
"group": "2_powershell"
},
{
"when": "editorLangId == powershell",
"command": "PowerShell.ShowHelp",
"group": "2_powershell"
}
],
"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*$",
"message": 1
},
{
"regexp": "^\\s+at\\s+[^,]+,\\s*(.*?):\\s+line\\s+(\\d+)$",
"file": 1,
"line": 2
}
]
}
],
"snippets": [
{
"language": "powershell",
"path": "./snippets/PowerShell.json"
}
],
"debuggers": [
{
"type": "PowerShell",
"label": "PowerShell",
"program": "./out/src/debugAdapter.js",
"runtime": "node",
"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 Integrated Console",
"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 Integrated Console 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 Configuration",
"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",
"default": [],
"description": "Specify array of Modules to exclude from Command Explorer listing."
},
"powershell.powerShellExePath": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Specifies the full path to a PowerShell executable. Changes the installation of PowerShell used for language and debugging services."
},
"powershell.powerShellAdditionalExePaths": {
"type": "array",
"description": "Specifies an array 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.",
"scope": "machine",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"versionName",
"exePath"
],
"properties": {
"versionName": {
"type": "string",
"description": "Specifies the version name of this PowerShell executable. The version name can be referenced via the powershell.powerShellDefaultVersion setting."
},
"exePath": {
"type": "string",
"description": "Specifies the path to the PowerShell executable. Typically this is a path to a non-standard install location."
}
}
}
},
"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 6 (x64)\"."
},
"powershell.promptToUpdatePowerShell": {
"type": "boolean",
"description": "Specifies whether you should be prompted to update your version of PowerShell.",
"default": true
},
"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, integrated console, code formatting, and other features are not enabled until the extension starts."
},
"powershell.useX86Host": {
"type": "boolean",
"default": false,
"description": "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."
},
"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.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": "",
"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"
],
"default": "NoIndentation",
"description": "Multi-line pipeline style settings."
},
"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.whitespaceAroundPipe": {
"type": "boolean",
"default": true,
"description": "Adds a space 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.useCorrectCasing": {
"type": "boolean",
"default": false,
"description": "Use correct casing for cmdlets."
},
"powershell.integratedConsole.showOnStartup": {
"type": "boolean",
"default": true,
"description": "Shows the integrated console 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.debugging.createTemporaryIntegratedConsole": {
"type": "boolean",
"default": false,
"description": "Determines whether a temporary PowerShell Integrated Console 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"
],
"default": "Normal",
"description": "Sets the logging verbosity level for the PowerShell Editor Services host executable. Valid values are 'Diagnostic', 'Verbose', 'Normal', 'Warning', and 'Error'"
},
"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",
"default": null,
"description": "An array of strings that enable experimental features in the PowerShell extension."
},
"powershell.developer.powerShellExeIsWindowsDevBuild": {
"type": "boolean",
"default": false,
"description": "Indicates that the powerShellExePath points to a developer build of Windows PowerShell and configures it for development."
}
}
},
"themes": [
{
"label": "PowerShell ISE",
"uiTheme": "vs",
"path": "./themes/theme-psise/theme.json"
}
]
},
"private": true
}