forked from PowerShell/vscode-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
353 lines (352 loc) · 15.2 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
{
"name": "PowerShell",
"displayName": "PowerShell",
"version": "0.9.0",
"publisher": "ms-vscode",
"description": "Develop PowerShell scripts in Visual Studio Code!",
"engines": {
"vscode": "^1.7.0"
},
"license": "SEE LICENSE IN LICENSE.txt",
"homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md",
"categories": [
"Languages",
"Snippets",
"Debuggers",
"Linters"
],
"icon": "images/PowerShell_icon.png",
"galleryBanner": {
"color": "#ACD1EC",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/PowerShell/vscode-powershell.git"
},
"main": "./out/main",
"activationEvents": [
"onLanguage:powershell",
"onCommand:PowerShell.NewProjectFromTemplate",
"onCommand:PowerShell.OpenExamplesFolder",
"onCommand:PowerShell.StartDebugSession",
"onCommand:PowerShell.PickPSHostProcess"
],
"dependencies": {
"vscode-languageclient": "1.3.1"
},
"devDependencies": {
"vscode": "^1.0.0",
"typescript": "^2.0.3",
"@types/node": "^6.0.40"
},
"extensionDependencies": [
"vscode.powershell"
],
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -p ./",
"compile-watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"contributes": {
"keybindings": [
{
"command": "PowerShell.OnlineHelp",
"key": "ctrl+f1",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.ExpandAlias",
"key": "ctrl+alt+e",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.RunSelection",
"key": "f8",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.OpenInISE",
"key": "ctrl+shift+i",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
"command": "PowerShell.PowerShellFindModule",
"key": "ctrl+K ctrl+f",
"when": "editorTextFocus && editorLangId == 'powershell'"
}
],
"commands": [
{
"command": "PowerShell.ExpandAlias",
"title": "Expand Alias",
"category": "PowerShell"
},
{
"command": "PowerShell.OnlineHelp",
"title": "Get online help for command",
"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.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.ShowSessionOutput",
"title": "Show Session Output",
"category": "PowerShell"
},
{
"command": "PowerShell.NewProjectFromTemplate",
"title": "Create New Project from Plaster Template",
"category": "PowerShell"
},
{
"command": "PowerShell.OpenExamplesFolder",
"title": "Open Examples Folder",
"category": "PowerShell"
}
],
"snippets": [
{
"language": "powershell",
"path": "./snippets/PowerShell.json"
}
],
"debuggers": [
{
"type": "PowerShell",
"enableBreakpointsFor": {
"languageIds": [
"powershell"
]
},
"program": "./out/debugAdapter.js",
"runtime": "node",
"variables": {
"PickPSHostProcess": "PowerShell.PickPSHostProcess"
},
"languages": ["powershell"],
"startSessionCommand": "PowerShell.StartDebugSession",
"configurationSnippets": [
{
"label": "PowerShell: Launch Current Script Configuration",
"description": "A new configuration for launching the current opened PowerShell script",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch (current file)",
"script": "^\"\\${file}\"",
"args": [],
"cwd": "^\"\\${file}\""
}
},
{
"label": "PowerShell: Launch Script Configuration",
"description": "A new configuration for launching a PowerShell script",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch (${Script})",
"script": "^\"\\${workspaceRoot}/${Script}\"",
"args": [],
"cwd": "^\"\\${workspaceRoot}\""
}
},
{
"label": "PowerShell: Attach to PowerShell Host Process Configuration",
"description": "A new configuration for debugging a runspace in another host process.",
"body": {
"type": "PowerShell",
"request": "attach",
"name": "PowerShell Attach to Host Process",
"processId": "^\"\\${command.PickPSHostProcess}\"",
"runspaceId": 1
}
},
{
"label": "PowerShell: Launch Interactive Session Configuration",
"description": "A new configuration for debugging an interactive session.",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session"
}
}
],
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "Deprecated. Please use the 'script' property instead to specify the absolute path to the PowerShell script to launch under the debugger."
},
"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.",
"items": {
"type": "string"
},
"default": []
},
"cwd": {
"type": "string",
"description": "Absolute path to the working directory. Default is the current workspace.",
"default": "${workspaceRoot}"
}
}
},
"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": "${command.PickPSHostProcess}"
},
"runspaceId": {
"type": "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": 1
}
}
}
},
"initialConfigurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch (current file)",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "attach",
"name": "PowerShell Attach to Host Process",
"processId": "${command.PickPSHostProcess}",
"runspaceId": 1
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session",
"cwd": "${workspaceRoot}"
}
]
}
],
"configuration": {
"type": "object",
"title": "PowerShell Configuration",
"properties": {
"powershell.useX86Host": {
"type": "boolean",
"default": false,
"description": "If true, causes the 32-bit language service to be used on 64-bit Windows. On 32-bit Windows this setting has no effect. This setting does not affect the debugger which has its own architecture configuration."
},
"powershell.enableProfileLoading": {
"type": "boolean",
"default": true,
"description": "If true, causes user and system wide profiles (profile.ps1 and Microsoft.VSCode_profile.ps1) to be loaded into the PowerShell session. This affects IntelliSense and interactive script execution. The debugger is not affected by this setting."
},
"powershell.scriptAnalysis.enable": {
"type": "boolean",
"default": true,
"description": "Enables real-time script analysis using PowerShell Script Analyzer."
},
"powershell.scriptAnalysis.settingsPath": {
"type": "string",
"default": "",
"description": "Specifies the path to a PowerShell Script Analyzer settings file. Use either an absolute path (to override the default settings for all projects) or use a path relative to your workspace."
},
"powershell.developer.powerShellExePath": {
"type": "string",
"default": "",
"description": "Specifies the full path to a PowerShell executable. Used to change the installation of PowerShell used for language and debugging services."
},
"powershell.developer.powerShellExeIsWindowsDevBuild": {
"type": "boolean",
"default": false,
"description": "If true, indicates that the powerShellExePath points to a developer build of Windows PowerShell and should be configured appropriately."
},
"powershell.developer.bundledModulesPath": {
"type": "string",
"default": "../modules/",
"description": "Specifies the path to the folder containing modules that are bundled with the PowerShell extension (i.e. PowerShell Editor Services, PowerShell Script Analyzer, Plaster)"
},
"powershell.developer.editorServicesLogLevel": {
"type": "string",
"default": "Normal",
"description": "Sets the logging verbosity level for the PowerShell Editor Services host executable. Possible values are '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.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": "A new line must follow an open brace."
}
}
}
},
"private": true
}