-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathpackage.json
executable file
·359 lines (359 loc) · 9.96 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
{
"name": "elixir-ls",
"displayName": "ElixirLS: Elixir support and debugger",
"homepage": "https://github.com/JakeBecker/elixir-ls",
"repository": {
"type": "git",
"url": "https://github.com/JakeBecker/vscode-elixir-ls.git"
},
"icon": "images/logo.png",
"description": "Elixir support with debugger, autocomplete, and more. Powered by ElixirLS.",
"author": "Jake Becker",
"license": "MIT",
"publisher": "JakeBecker",
"version": "0.2.24",
"engines": {
"vscode": "^1.25.1"
},
"categories": [
"Programming Languages",
"Debuggers"
],
"activationEvents": [
"onLanguage:elixir"
],
"main": "./out/src/extension",
"contributes": {
"configurationDefaults": {
"[elixir]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.wordBasedSuggestions": false,
"editor.formatOnType": true,
"editor.acceptSuggestionOnEnter": "off",
"editor.trimAutoWhitespace": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true
}
},
"configuration": {
"title": "ElixirLS configuration",
"properties": {
"elixirLS.dialyzerEnabled": {
"type": "boolean",
"default": true,
"description": "Run ElixirLS's rapid Dialyzer when code is saved"
},
"elixirLS.dialyzerWarnOpts": {
"description": "Dialyzer options to enable or disable warnings. See Dialyzer's documentation for options. Note that the \"race_conditions\" option is unsupported",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"error_handling",
"no_behaviours",
"no_contracts",
"no_fail_call",
"no_fun_app",
"no_improper_lists",
"no_match",
"no_missing_calls",
"no_opaque",
"no_return",
"no_undefined_callbacks",
"no_unused",
"underspecs",
"unknown",
"unmatched_returns",
"overspecs",
"specdiffs"
]
},
"default": []
},
"elixirLS.dialyzerFormat": {
"description": "Formatter to use for Dialyzer warnings",
"type": "string",
"enum": [
"dialyzer",
"dialyxir_short",
"dialyxir_long"
],
"default": "dialyzer"
},
"elixirLS.mixEnv": {
"type": "string",
"description": "Mix environment to use for compilation",
"default": "test",
"minLength": 1
},
"elixirLS.projectDir": {
"type": "string",
"description": "Subdirectory containing Mix project if not in the project root",
"minLength": 1
},
"elixirLS.fetchDeps": {
"type": "boolean",
"description": "Automatically fetch project dependencies when compiling",
"default": true
},
"elixirLS.suggestSpecs": {
"type": "boolean",
"description": "Suggest @spec annotations inline using Dialyzer's inferred success typings (Requires Dialyzer)",
"default": true
}
}
},
"languages": [
{
"id": "elixir",
"aliases": [
"Elixir",
"elixir"
],
"extensions": [
".ex",
".exs"
],
"filenames": [
"mix.lock"
],
"configuration": "./elixir-language-configuration.json"
},
{
"id": "EEx",
"aliases": [
"EEx",
"eex"
],
"extensions": [
".eex"
],
"configuration": "./eex-language-configuration.json"
},
{
"id": "HTML (EEx)",
"aliases": [
"HTML (EEx)"
],
"extensions": [
".html.eex"
],
"configuration": "./eex-language-configuration.json"
}
],
"grammars": [
{
"language": "elixir",
"scopeName": "source.elixir",
"path": "./syntaxes/elixir.json"
},
{
"language": "EEx",
"scopeName": "text.elixir",
"path": "./syntaxes/eex.json"
},
{
"language": "HTML (EEx)",
"scopeName": "text.html.elixir",
"path": "./syntaxes/html (eex).json"
}
],
"breakpoints": [
{
"language": "elixir"
}
],
"debuggers": [
{
"type": "mix_task",
"label": "Mix Task",
"windows": {
"program": "elixir-ls-release/debugger.bat"
},
"linux": {
"program": "elixir-ls-release/debugger.sh"
},
"osx": {
"program": "elixir-ls-release/debugger.sh"
},
"languages": [
"elixir"
],
"configurationAttributes": {
"launch": {
"required": [
"projectDir"
],
"properties": {
"task": {
"type": "string",
"description": "Mix task name (without arguments)",
"default": "run"
},
"taskArgs": {
"type": "array",
"description": "List of arguments for task",
"default": [],
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"description": "Environment variables to set before debugging. You may want to set MIX_ENV in here."
},
"projectDir": {
"type": "string",
"description": "Project root directory (usually the workspace root)",
"default": "${workspaceRoot}"
},
"startApps": {
"type": "boolean",
"description": "Run apps.start before requiring files. This should be set to true for Phoenix tests, but false in most other cases"
},
"excludeModules": {
"type": "array",
"description": "Names of modules not to interpret. If a module contains NIFs, you should exclude it. Examples: Some.Module, :erlang_module",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"requireFiles": {
"type": "array",
"description": "Paths for any .exs files to interpret before debugging in the order they should be loaded. Accepts path wildcards",
"items": {
"type": "string"
}
},
"stackTraceMode": {
"type": "string",
"description": ":int.stack_trace/1 option",
"enum": [
"all",
"no_tail",
"false"
],
"default": "no_tail"
}
}
}
},
"initialConfigurations": [
{
"type": "mix_task",
"name": "mix (Default task)",
"request": "launch",
"projectDir": "${workspaceRoot}"
},
{
"type": "mix_task",
"name": "mix test",
"request": "launch",
"task": "test",
"taskArgs": [
"--trace"
],
"startApps": true,
"projectDir": "${workspaceRoot}",
"requireFiles": [
"test/**/test_helper.exs",
"test/**/*_test.exs"
]
}
],
"configurationSnippets": [
{
"label": "Elixir Mix",
"description": "Launch a Mix task",
"body": {
"type": "mix_task",
"request": "launch",
"name": "mix ${1:task}",
"task": "${1:task}",
"taskArgs": [],
"projectDir": "^\"\\${workspaceRoot}\""
}
}
]
}
],
"problemMatchers": [
{
"name": "mixCompileError",
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "error",
"pattern": {
"regexp": "^\\*\\* \\((\\w+)\\) (.*):(\\d+): (.*)$",
"file": 2,
"location": 3,
"message": 0
}
},
{
"name": "mixCompileWarning",
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "warning",
"pattern": [
{
"regexp": "^warning: (.*)$",
"message": 1
},
{
"regexp": "^ (.*):(\\d+)(.*)$",
"file": 1,
"location": 2,
"message": 3
}
]
},
{
"name": "mixTestFailure",
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "warning",
"pattern": [
{
"regexp": "^\\s*\\d+\\) (.*)$",
"message": 1
},
{
"regexp": "^\\s*(.*):(\\d+)$",
"file": 1,
"location": 2
}
]
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./ && cp elixir-ls/CHANGELOG.md . && cd elixir-ls && mix elixir_ls.release -o ../elixir-ls-release",
"compile": "tsc -p ./ && cd elixir-ls && mix elixir_ls.release -o ../elixir-ls-release",
"update-vscode": "node ./node_modules/vscode/bin/install",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/mocha": "^2.2.33",
"@types/node": "^6.14.4",
"typescript": "^2.9.2",
"vscode": "^1.1.30"
},
"dependencies": {
"shelljs": "^0.8.3",
"vscode-languageclient": "^4.4.2"
}
}