forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
363 lines (363 loc) · 11.7 KB
/
package.json
File metadata and controls
363 lines (363 loc) · 11.7 KB
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
{
"name": "python",
"displayName": "Python",
"description": "Linting, Debugging (multi-threaded), Intellisense, auto-completion, code formatting, snippets, and more.",
"version": "0.2.8",
"publisher": "donjayamanne",
"license": "SEE LICENSE IN LICENSE or README.MD",
"homepage": "https://github.com/DonJayamanne/pythonVSCode/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/DonJayamanne/pythonVSCode"
},
"bugs": {
"url": "https://github.com/DonJayamanne/pythonVSCode/issues"
},
"icon": "images/icon.png",
"galleryBanner": {
"color": "#0000FF",
"theme": "dark"
},
"engines": {
"vscode": "^0.10.8"
},
"categories": [
"Languages",
"Debuggers",
"Linters",
"Snippets",
"Other"
],
"activationEvents": [
"onLanguage:python",
"onCommand:python.sortImports",
"onCommand:python.runtests"
],
"main": "./out/client/extension",
"contributes": {
"snippets": [
{
"language": "python",
"path": "./snippets/python.json"
}
],
"commands": [
{
"command": "python.sortImports",
"title": "Python: Sort Imports"
},
{
"command": "python.runtests",
"title": "Python: Run Unit Tests"
}
],
"debuggers": [
{
"type": "python",
"label": "Python",
"enableBreakpointsFor": {
"languageIds": [
"python"
]
},
"program": "./out/client/debugger/Main.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the program.",
"default": "${file}"
},
"pythonPath": {
"type": "string",
"description": "Path (fully qualified) to python executable.",
"default": ""
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program",
"default": [],
"items": {
"type": "string"
}
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"externalConsole": {
"type": "boolean",
"description": "Launch debug target in external console window.",
"default": false
},
"cwd": {
"type": "string",
"description": "Absolute path to the working directory of the program being debugged. Default is the root directory of the file (leave null).",
"default": null
},
"debugOptions": {
"type": "array",
"description": "Advanced options, view read me for further details.",
"items": {
"type": "string",
"enum": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput",
"DebugStdLib",
"BreakOnSystemExitZero"
]
},
"default": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
}
}
},
"attach": {
"required": [
"localRoot",
"remoteRoot"
],
"properties": {
"localRoot": {
"type": "string",
"description": "Local source root that corrresponds to the 'remoteRoot'.",
"default": "${workspaceRoot}"
},
"remoteRoot": {
"type": "string",
"description": "The source root of the remote host.",
"default": null
},
"port": {
"type": "number",
"description": "Debug port to attach",
"default": null
},
"url": {
"type": "string",
"description": "Url of remote server.",
"default": true
},
"secret": {
"type": "string",
"description": "Secret used to authenticate for remote debugging.",
"default": ""
}
}
}
},
"initialConfigurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
},
{
"name": "Python Console App",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"externalConsole": true,
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit"
]
}
]
}
],
"configuration": {
"type": "object",
"title": "Python Configuration",
"properties": {
"python.pythonPath": {
"type": "string",
"default": "python",
"description": "Path to Python, you can use a custom version of Python by modifying this setting to include the full path."
},
"python.linting.enabled": {
"type": "boolean",
"default": true,
"description": "Whether to lint Python files."
},
"python.linting.pylintEnabled": {
"type": "boolean",
"default": true,
"description": "Whether to lint Python files using pylint."
},
"python.linting.pep8Enabled": {
"type": "boolean",
"default": false,
"description": "Whether to lint Python files using pep8"
},
"python.linting.flake8Enabled": {
"type": "boolean",
"default": false,
"description": "Whether to lint Python files using flake8"
},
"python.linting.lintOnTextChange": {
"type": "boolean",
"default": true,
"description": "Whether to lint Python files when modified."
},
"python.linting.lintOnSave": {
"type": "boolean",
"default": true,
"description": "Whether to lint Python files when saved."
},
"python.linting.maxNumberOfProblems": {
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"python.linting.pylintCategorySeverity.convention": {
"type": "string",
"default": "Hint",
"description": "Severity of Pylint message type 'Convention/C'.",
"enum": [
"Hint",
"Error",
"Information",
"Warning"
]
},
"python.linting.pylintCategorySeverity.refactor": {
"type": "string",
"default": "Hint",
"description": "Severity of Pylint message type 'Refactor/R'.",
"enum": [
"Hint",
"Error",
"Information",
"Warning"
]
},
"python.linting.pylintCategorySeverity.warning": {
"type": "string",
"default": "Warning",
"description": "Severity of Pylint message type 'Warning/W'.",
"enum": [
"Hint",
"Error",
"Information",
"Warning"
]
},
"python.linting.pylintCategorySeverity.error": {
"type": "string",
"default": "Error",
"description": "Severity of Pylint message type 'Error/E'.",
"enum": [
"Hint",
"Error",
"Information",
"Warning"
]
},
"python.linting.pylintCategorySeverity.fatal": {
"type": "string",
"default": "Error",
"description": "Severity of Pylint message type 'Fatal/F'.",
"enum": [
"Hint",
"Error",
"Information",
"Warning"
]
},
"python.linting.pylintPath": {
"type": "string",
"default": "pylint",
"description": "Path to Pylint, you can use a custom version of pylint by modifying this setting to include the full path."
},
"python.linting.pep8Path": {
"type": "string",
"default": "pep8",
"description": "Path to pep8, you can use a custom version of pep8 by modifying this setting to include the full path."
},
"python.linting.flake8Path": {
"type": "string",
"default": "flake8",
"description": "Path to flake8, you can use a custom version of flake8 by modifying this setting to include the full path."
},
"python.formatting.provider": {
"type": "string",
"default": "autopep8",
"description": "Provider for formatting. Possible options include 'autopep8' and 'yapf'.",
"enum": [
"autopep8",
"yapf"
]
},
"python.formatting.autopep8Path": {
"type": "string",
"default": "autopep8",
"description": "Path to autopep8, you can use a custom version of autopep8 by modifying this setting to include the full path."
},
"python.formatting.yapfPath": {
"type": "string",
"default": "yapf",
"description": "Path to yapf, you can use a custom version of yapf by modifying this setting to include the full path."
},
"python.autoComplete.extraPaths": {
"type": "array",
"default": [],
"description": "List of paths to libraries and the like that need to be imported by auto complete engine. E.g. when using Google App SDK, the paths are not in system path, hence need to be added into this list."
},
"python.unitTest.nosetestsEnabled": {
"type": "boolean",
"default": false,
"description": "Whether to enable or disable unit testing using nosetests."
},
"python.unitTest.nosetestPath": {
"type": "string",
"default": "nosetests",
"description": "Path to nosetests, you can use a custom version of nosetests by modifying this setting to include the full path."
},
"python.unitTest.unittestEnabled": {
"type": "boolean",
"default": true,
"description": "Whether to enable or disable unit testing using standard unittest (built into Python)."
}
}
}
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./ && installServerIntoExtension ./out ./src/server/package.json ./src/server/tsconfig.json",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"dependencies": {
"line-by-line": "^0.1.4",
"named-js-regexp": "^1.3.1",
"tmp": "0.0.28",
"tree-kill": "^1.0.0",
"uint64be": "^1.0.1",
"vscode-debugadapter": "^1.0.1",
"vscode-debugprotocol": "^1.0.1",
"vscode-languageclient": "^1.1.0",
"vscode-languageserver": "^1.1.0"
},
"devDependencies": {
"typescript": "^1.7.5",
"vscode": "^0.11.0"
}
}