forked from haskell/vscode-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
488 lines (488 loc) · 16.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
{
"name": "haskell",
"displayName": "Haskell",
"description": "Haskell language support powered by the Haskell Language Server",
"version": "2.0.0",
"license": "MIT",
"publisher": "haskell",
"engines": {
"vscode": "^1.63.0"
},
"keywords": [
"language",
"haskell",
"cabal",
"stack",
"lsp",
"multi-root ready"
],
"homepage": "https://github.com/haskell/vscode-haskell",
"repository": {
"type": "git",
"url": "https://github.com/haskell/vscode-haskell.git"
},
"bugs": {
"url": "https://github.com/haskell/vscode-haskell/issues"
},
"categories": [
"Programming Languages",
"Formatters",
"Linters",
"Other"
],
"icon": "images/hls-logo.png",
"galleryBanner": {
"color": "#22172A",
"theme": "dark"
},
"activationEvents": [
"onLanguage:haskell",
"onLanguage:literate haskell"
],
"main": "./dist/extension",
"contributes": {
"languages": [
{
"id": "haskell",
"aliases": [
"Haskell",
"haskell"
],
"extensions": [
".hs"
]
},
{
"id": "literate haskell",
"aliases": [
"Literate Haskell",
"literate Haskell"
],
"extensions": [
".lhs"
]
}
],
"configuration": {
"type": "object",
"title": "Haskell",
"properties": {
"haskell.formattingProvider": {
"scope": "resource",
"type": "string",
"enum": [
"brittany",
"floskell",
"fourmolu",
"ormolu",
"stylish-haskell",
"none"
],
"default": "ormolu",
"description": "The formatter to use when formatting a document or range. Ensure the plugin is enabled."
},
"haskell.openDocumentationInHackage": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "When opening 'Documentation' for external libraries, open in hackage by default. Set to false to instead open in vscode."
},
"haskell.openSourceInHackage": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "When opening 'Source' for external libraries, open in hackage by default. Set to false to instead open in vscode."
},
"haskell.trace.server": {
"scope": "resource",
"type": "string",
"enum": [
"off",
"messages"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"haskell.trace.client": {
"scope": "resource",
"type": "string",
"enum": [
"off",
"error",
"info",
"debug"
],
"default": "info",
"description": "Sets the log level in the client side."
},
"haskell.logFile": {
"scope": "resource",
"type": "string",
"default": "",
"description": "If set, redirects the logs to a file."
},
"haskell.releasesURL": {
"scope": "resource",
"type": "string",
"default": "",
"description": "An optional URL to override where ghcup checks for HLS-GHC compatibility list (usually at: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/hls-metadata-0.0.1.json)"
},
"haskell.metadataURL": {
"scope": "resource",
"type": "string",
"default": "",
"description": "An optional URL to override where ghcup checks for tool download info (usually at: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.7.yaml)"
},
"haskell.releasesDownloadStoragePath": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "An optional path where downloaded metadata will be stored. Check the default value [here](https://github.com/haskell/vscode-haskell#downloaded-binaries)"
},
"haskell.serverExecutablePath": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Manually set a language server executable. Can be something on the $PATH or the full path to the executable itself. Works with `~,` `${HOME}` and `${workspaceFolder}`. **Deprecated scope**: This option will be set to `machine` scope in a future release, so it can be changed only globally, not per workspace."
},
"haskell.serverExtraArgs": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Pass additional arguments to the language server."
},
"haskell.ghcupExecutablePath": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Manually set a ghcup executable path."
},
"haskell.serverEnvironment": {
"scope": "resource",
"type": "object",
"default": {},
"markdownDescription": "Define environment variables for the language server."
},
"haskell.promptBeforeDownloads": {
"scope": "machine",
"type": "boolean",
"default": "true",
"markdownDescription": "Prompt before performing any downloads."
},
"haskell.manageHLS": {
"scope": "resource",
"type": "string",
"default": "PATH",
"description": "How to manage/find HLS installations.",
"enum": [
"GHCup",
"PATH"
],
"enumDescriptions": [
"Will use ghcup and manage Haskell toolchain in the default location (usually '~/.ghcup')",
"Discovers HLS and other executables in system PATH"
]
},
"haskell.toolchain": {
"scope": "resource",
"type": "object",
"default": {},
"description": "When manageHLS is set to GHCup, this can overwrite the automatic toolchain configuration with a more specific one. When a tool is omitted, the extension will manage the version (for 'ghc' we try to figure out the version the project requires). The format is '{\"tool\": \"version\", ...}'. 'version' accepts all identifiers that 'ghcup' accepts."
},
"haskell.upgradeGHCup": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Whether to upgrade GHCup automatically when 'manageHLS' is set to 'GHCup'."
},
"haskell.checkProject": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Whether to typecheck the entire project on load. It could drive to bad performance in large projects."
},
"haskell.maxCompletions": {
"scope": "resource",
"default": 40,
"type": "integer",
"description": "Maximum number of completions sent to the editor."
},
"haskell.plugin.importLens.codeActionsOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables explicit imports code actions"
},
"haskell.plugin.importLens.codeLensOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables explicit imports code lenses"
},
"haskell.plugin.hlint.codeActionsOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables hlint code actions (apply hints)"
},
"haskell.plugin.hlint.diagnosticsOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables hlint diagnostics"
},
"haskell.plugin.hlint.config.flags": {
"markdownDescription": "Flags used by hlint",
"scope": "resource",
"default": [],
"type": "array"
},
"haskell.plugin.eval.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables eval plugin"
},
"haskell.plugin.eval.config.diff": {
"markdownDescription": "When reloading haddock test results in changes, mark it with WAS/NOW.",
"scope": "resource",
"default": true,
"type": "boolean"
},
"haskell.plugin.eval.config.exception": {
"markdownDescription": "When the command results in an exception, mark it with `*** Exception:`.",
"scope": "resource",
"default": false,
"type": "boolean"
},
"haskell.plugin.moduleName.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables module name plugin"
},
"haskell.plugin.splice.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables splice plugin (expand template haskell definitions)"
},
"haskell.plugin.haddockComments.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables haddock comments plugin"
},
"haskell.plugin.class.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables type class plugin"
},
"haskell.plugin.rename.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables rename plugin"
},
"haskell.plugin.rename.config.crossModule": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Enables renaming across modules (experimental)"
},
"haskell.plugin.retrie.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables retrie plugin"
},
"haskell.plugin.tactics.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables Wingman (tactics) plugin"
},
"haskell.plugin.tactics.config.auto_gas": {
"markdownDescription": "The depth of the search tree when performing \"Attempt to fill hole\". Bigger values will be able to derive more solutions, but will take exponentially more time.",
"scope": "resource",
"default": 4,
"type": "integer"
},
"haskell.plugin.tactics.config.hole_severity": {
"enumDescriptions": [
"error",
"warning",
"info",
"hint",
"none"
],
"scope": "resource",
"description": "The severity to use when showing hole diagnostics.",
"enum": [
1,
2,
3,
4,
null
],
"default": null,
"type": "integer"
},
"haskell.plugin.tactics.config.max_use_ctor_actions": {
"title": "Max number of constructors",
"scope": "resource",
"type": "integer",
"default": 5,
"markdownDescription": "Maximum number of `Use constructor <x>` code actions that can appear"
},
"haskell.plugin.tactics.config.timeout_duration": {
"markdownDescription": "The timeout for Wingman actions, in seconds",
"scope": "resource",
"default": 2,
"type": "integer"
},
"haskell.plugin.tactics.config.proofstate_styling": {
"markdownDescription": "Should Wingman emit styling markup when showing metaprogram proof states?",
"scope": "resource",
"default": true,
"type": "boolean"
},
"haskell.plugin.pragmas.codeActionsOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables pragmas code actions"
},
"haskell.plugin.pragmas.completionOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables pragmas completions"
},
"haskell.plugin.ghcide-completions.config.autoExtendOn": {
"markdownDescription": "Extends the import list automatically when completing a out-of-scope identifier",
"scope": "resource",
"default": true,
"type": "boolean"
},
"haskell.plugin.ghcide-completions.config.snippetsOn": {
"markdownDescription": "Inserts snippets when using code completions",
"scope": "resource",
"default": true,
"type": "boolean"
},
"haskell.plugin.ghcide-type-lenses.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables type lenses plugin"
},
"haskell.plugin.ghcide-type-lenses.config.mode": {
"scope": "resource",
"type": "string",
"default": true,
"description": "Control how type lenses are shown",
"enum": [
"always",
"exported",
"diagnostics"
],
"enumDescriptions": [
"Always displays type lenses of global bindings",
"Only display type lenses of exported global bindings",
"Follows error messages produced by GHC about missing signatures"
]
},
"haskell.plugin.refineImports.globalOn": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables refine imports plugin"
}
}
},
"commands": [
{
"command": "haskell.commands.importIdentifier",
"title": "Haskell: Import identifier",
"description": "Imports a function or type based on a Hoogle search"
},
{
"command": "haskell.commands.restartServer",
"title": "Haskell: Restart Haskell LSP server",
"description": "Restart the Haskell LSP server"
},
{
"command": "haskell.commands.startServer",
"title": "Haskell: Start Haskell LSP server",
"description": "Start the Haskell LSP server"
},
{
"command": "haskell.commands.stopServer",
"title": "Haskell: Stop Haskell LSP server",
"description": "Stop the Haskell LSP server"
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode none",
"watch": "webpack --mode development --watch",
"tslint": "tslint -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
"tslint-fix": "tslint --fix -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version",
"pretest": "tsc -p ./",
"format": "prettier . --write",
"test": "node ./out/test/runTest.js"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"devDependencies": {
"@types/bent": "^7.3.2",
"@types/cheerio": "^0.22.30",
"@types/glob": "^7.1.4",
"@types/js-yaml": "^4.0.5",
"@types/lodash-es": "^4.17.3",
"@types/lru-cache": "^7.6.1",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.23",
"@types/vscode": "^1.52.0",
"@types/which": "^2.0.1",
"@types/yauzl": "^2.9.1",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@vscode/test-electron": "^2.1.3",
"eslint": "^8.10.0",
"glob": "^7.1.4",
"husky": "^7.0.2",
"mocha": "^9.2.1",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.2",
"set-value": ">=4.0.1",
"ts-loader": "^9.2.8",
"tslint": "^6.1.3",
"tslint-loader": "^3.5.4",
"typescript": "^4.4.0",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
},
"extensionDependencies": [
"justusadam.language-haskell"
],
"dependencies": {
"bent": "^7.3.12",
"cheerio": "^1.0.0-rc.10",
"extend": ">=3.0.2",
"js-yaml": "^4.1.0",
"lodash-es": "^4.17.21",
"lru-cache": "^7.7.3",
"ts-pattern": "^4.0.1",
"vscode-languageclient": "^7.0.0",
"which": "^2.0.1",
"yauzl": "^2.10.0"
}
}