forked from haskell/vscode-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
600 lines (599 loc) · 20.2 KB
/
package.json
File metadata and controls
600 lines (599 loc) · 20.2 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
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
{
"name": "haskell",
"displayName": "Haskell",
"description": "Haskell language support powered by the Haskell Language Server",
"version": "2.2.4",
"license": "MIT",
"publisher": "haskell",
"engines": {
"vscode": "^1.79.1"
},
"keywords": [
"language",
"haskell",
"cabal",
"stack",
"lsp",
"multi-root ready"
],
"homepage": "https://github.com/haskell/vscode-haskell",
"repository": "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",
"onLanguage:cabal"
],
"main": "./dist/extension",
"contributes": {
"languages": [
{
"id": "haskell",
"aliases": [
"Haskell",
"haskell"
],
"extensions": [
".hs"
]
},
{
"id": "cabal",
"aliases": [
"Cabal"
],
"extensions": [
".cabal"
]
},
{
"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",
"verbose"
],
"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": "machine-overridable",
"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}`."
},
"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.alternateNumberFormat.globalOn": {
"default": true,
"description": "Enables alternateNumberFormat plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.cabal.globalOn": {
"default": true,
"description": "Enables cabal plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.callHierarchy.globalOn": {
"default": true,
"description": "Enables callHierarchy plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.changeTypeSignature.globalOn": {
"default": true,
"description": "Enables changeTypeSignature plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.class.codeActionsOn": {
"default": true,
"description": "Enables class code actions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.class.codeLensOn": {
"default": true,
"description": "Enables class code lenses",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.eval.config.diff": {
"default": true,
"markdownDescription": "Enable the diff output (WAS/NOW) of eval lenses",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.eval.config.exception": {
"default": false,
"markdownDescription": "Enable marking exceptions with `*** Exception:` similarly to doctest and GHCi.",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.eval.globalOn": {
"default": true,
"description": "Enables eval plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.explicit-fields.globalOn": {
"default": true,
"description": "Enables explicit-fields plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.explicit-fixity.globalOn": {
"default": true,
"description": "Enables explicit-fixity plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.fourmolu.config.external": {
"default": false,
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.gadt.globalOn": {
"default": true,
"description": "Enables gadt plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-code-actions-bindings.globalOn": {
"default": true,
"description": "Enables ghcide-code-actions-bindings plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-code-actions-fill-holes.globalOn": {
"default": true,
"description": "Enables ghcide-code-actions-fill-holes plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-code-actions-imports-exports.globalOn": {
"default": true,
"description": "Enables ghcide-code-actions-imports-exports plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-code-actions-type-signatures.globalOn": {
"default": true,
"description": "Enables ghcide-code-actions-type-signatures plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-completions.config.autoExtendOn": {
"default": true,
"markdownDescription": "Extends the import list automatically when completing a out-of-scope identifier",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-completions.config.snippetsOn": {
"default": true,
"markdownDescription": "Inserts snippets when using code completions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-completions.globalOn": {
"default": true,
"description": "Enables ghcide-completions plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-hover-and-symbols.hoverOn": {
"default": true,
"description": "Enables ghcide-hover-and-symbols hover",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-hover-and-symbols.symbolsOn": {
"default": true,
"description": "Enables ghcide-hover-and-symbols symbols",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.ghcide-type-lenses.config.mode": {
"default": "always",
"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"
],
"scope": "resource",
"type": "string"
},
"haskell.plugin.ghcide-type-lenses.globalOn": {
"default": true,
"description": "Enables ghcide-type-lenses plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.haddockComments.globalOn": {
"default": true,
"description": "Enables haddockComments plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.hlint.codeActionsOn": {
"default": true,
"description": "Enables hlint code actions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.hlint.config.flags": {
"default": [],
"markdownDescription": "Flags used by hlint",
"scope": "resource",
"type": "array"
},
"haskell.plugin.hlint.diagnosticsOn": {
"default": true,
"description": "Enables hlint diagnostics",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.importLens.codeActionsOn": {
"default": true,
"description": "Enables importLens code actions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.importLens.codeLensOn": {
"default": true,
"description": "Enables importLens code lenses",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.moduleName.globalOn": {
"default": true,
"description": "Enables moduleName plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.pragmas.codeActionsOn": {
"default": true,
"description": "Enables pragmas code actions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.pragmas.completionOn": {
"default": true,
"description": "Enables pragmas completions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.qualifyImportedNames.globalOn": {
"default": true,
"description": "Enables qualifyImportedNames plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.refineImports.codeActionsOn": {
"default": true,
"description": "Enables refineImports code actions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.refineImports.codeLensOn": {
"default": true,
"description": "Enables refineImports code lenses",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.rename.config.crossModule": {
"default": false,
"markdownDescription": "Enable experimental cross-module renaming",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.rename.globalOn": {
"default": true,
"description": "Enables rename plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.retrie.globalOn": {
"default": true,
"description": "Enables retrie plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.splice.globalOn": {
"default": true,
"description": "Enables splice plugin",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.tactics.codeActionsOn": {
"default": true,
"description": "Enables tactics code actions",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.tactics.codeLensOn": {
"default": true,
"description": "Enables tactics code lenses",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.tactics.config.auto_gas": {
"default": 4,
"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",
"type": "integer"
},
"haskell.plugin.tactics.config.hole_severity": {
"default": null,
"description": "The severity to use when showing hole diagnostics. These are noisy, but some editors don't allow jumping to all severities.",
"enum": [
1,
2,
3,
4,
null
],
"enumDescriptions": [
"error",
"warning",
"info",
"hint",
"none"
],
"scope": "resource",
"type": "string"
},
"haskell.plugin.tactics.config.max_use_ctor_actions": {
"default": 5,
"markdownDescription": "Maximum number of `Use constructor <x>` code actions that can appear",
"scope": "resource",
"type": "integer"
},
"haskell.plugin.tactics.config.proofstate_styling": {
"default": true,
"markdownDescription": "Should Wingman emit styling markup when showing metaprogram proof states?",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.tactics.config.timeout_duration": {
"default": 2,
"markdownDescription": "The timeout for Wingman actions, in seconds",
"scope": "resource",
"type": "integer"
},
"haskell.plugin.tactics.hoverOn": {
"default": true,
"description": "Enables tactics hover",
"scope": "resource",
"type": "boolean"
}
}
},
"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",
"lint": "eslint -c .eslintrc.json --ext .ts src",
"lint-fix": "eslint --fix -c .eslintrc.json --ext .ts src",
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version",
"pretest": "tsc --alwaysStrict -p ./",
"format": "prettier . --write",
"test": "node ./out/test/runTest.js"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "^20.1.0",
"@types/vscode": "^1.79.1",
"@types/which": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.60.1",
"@vscode/test-electron": "^2.3.3",
"eslint": "^8.38.0",
"eslint-webpack-plugin": "^4.0.1",
"glob": "^10.3.1",
"husky": "^8.0.2",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"ts-loader": "^9.4.2",
"typescript": "^5.0.4",
"webpack": "^5.88.1",
"webpack-cli": "^5.1.1"
},
"extensionDependencies": [
"justusadam.language-haskell"
],
"dependencies": {
"ts-pattern": "^4.2.2",
"vscode-languageclient": "^8.1.0",
"which": "^3.0.1"
}
}