@@ -6,292 +6,333 @@
6 "version": "1.0",
6 "version": "1.0",
7 "categories": ["languages", "formatters"],
7 "categories": ["languages", "formatters"],
8 "main": "main.js",
8 "main": "main.js",
9− "entitlements": {
9+ "entitlements":
10 "process": true,
11 "process": true,
11 "filesystem": "readwrite",
12 "filesystem": "readwrite",
12 "requests": true
13 "requests": true
14− "configWorkspace": [{
15+ "configWorkspace": [
15 "key": "haskell-language-server-path",
17 "key": "haskell-language-server-path",
16 "title": "Haskell Language Server path",
18 "title": "Haskell Language Server path",
17 "description": "If you want to use a custom HLS build for this project, then specify the path to it here.",
19 "description": "If you want to use a custom HLS build for this project, then specify the path to it here.",
18 "type": "path",
20 "type": "path",
19 "placeholder": "/usr/local/bin/example"
21 "placeholder": "/usr/local/bin/example"
24+ "key": "env-generator",
25+ "title": "Environment generator",
26+ "description": "You can specify a shell command which will be used to generate the environment, in which the extension will be executes. This is useful if you want to utilize `nix-shell`, `direnv` or any similar command.\n\nExpects the command to have the same stdout as the `env` command.",
28+ "allowsCustom": true,
29+ "values": ["nix-shell --run env", "direnv exec env"]
21 "type": "section",
32 "type": "section",
22 "title": "Haskell Language Server settings",
33 "title": "Haskell Language Server settings",
34+ "description":"Some of the features are not supported in Nova. Some of them are explicitly marked as not supported, but it is not exhaustive.",
23− "children": [{
35+ "children": [
24− "key": "haskell.formattingProvider",
37+ "key": "haskell.formattingProvider",
25− "title": "Code formatter",
38+ "title": "Code formatter",
26− "type": "enum",
39+ "type": "enum",
27− "values": [
40+ "values": [
28− "brittany",
41+ "brittany",
29− "floskell",
42+ "floskell",
30− "fourmolu",
43+ "fourmolu",
31− "ormolu",
44+ "ormolu",
32− "stylish-haskell",
45+ "stylish-haskell",
35− "default": "ormolu",
48+ "default": "ormolu",
36− "description": "The formatter to use when formatting a document or range. Ensure the plugin is enabled."
49+ "description": "The formatter to use when formatting a document or range. Ensure the plugin is enabled."
38− "key": "haskell.checkProject",
52+ "key": "haskell.checkProject",
39− "title": "Check whole project",
53+ "title": "Check whole project",
40− "type": "boolean",
54+ "type": "boolean",
41− "default": false,
55+ "default": false,
42− "description": "Whether to typecheck the entire project on load. It could drive to bad perfomance in large projects."
56+ "description": "Whether to typecheck the entire project on load. It could lead to bad perfomance in large projects."
44− "key": "haskell.maxCompletions",
46− "title": "Maximum number of completions",
47− "description": "Maximum number of completions sent to the editor.",
50− "type": "section",
59+ "title": "Completions",
51− "title": "Plugin settings",
53 "type": "section",
60 "type": "section",
54− "title": "Import lens",
55− "description": "Not currently implemented in Nova",
56− "children": [{
61+ "children": [
57− "key": "haskell.plugin.importLens.codeActionsOn",
62+ {
58− "title": "Enable code actions",
63+ "key": "haskell.plugin.ghcide-completions.config.autoExtendOn",
59− "type": "boolean",
64+ "title": "Extend with out-of-scope identifiers",
65+ "description": "Extends the import list automatically when completing a out-of-scope identifier",
60 "default": true,
66 "default": true,
61− "description": "Enables explicit imports code actions"
67+ "type": "boolean"
63− "key": "haskell.plugin.importLens.codeLensOn",
69+ {
64− "title": "Enable code lens",
70+ "key": "haskell.plugin.ghcide-completions.config.snippetsOn",
65− "type": "boolean",
71+ "title": "Insert snippets",
72+ "description": "Inserts snippets when using code completions",
66 "default": true,
73 "default": true,
67− "description": "Enables explicit imports code lenses"
74+ "type": "boolean"
77+ "key": "haskell.maxCompletions",
79+ "title": "Maximum number of completions",
80+ "description": "Maximum number of completions sent to the editor.",
70 "title": "HLint",
85 "title": "HLint",
71 "type": "section",
86 "type": "section",
72− "children": [{
87+ "children": [
73 "key": "haskell.plugin.hlint.codeActionsOn",
89 "key": "haskell.plugin.hlint.codeActionsOn",
74 "title": "Enable code actions",
90 "title": "Enable code actions",
75 "type": "boolean",
91 "type": "boolean",
76 "default": true,
92 "default": true,
77 "description": "Enables hlint code actions (apply hints)"
93 "description": "Enables hlint code actions (apply hints)"
79 "key": "haskell.plugin.hlint.diagnosticsOn",
96 "key": "haskell.plugin.hlint.diagnosticsOn",
80 "title": "Enable diagnostics",
97 "title": "Enable diagnostics",
81 "type": "boolean",
98 "type": "boolean",
82 "default": true,
99 "default": true,
83 "description": "Enables hlint diagnostics"
100 "description": "Enables hlint diagnostics"
85− "title": "Configuration",
102+ {
88− "key": "haskell.plugin.hlint.config.flags",
103+ "key": "haskell.plugin.hlint.config.flags",
89− "title": "Flags",
104+ "title": "Flags",
90− "description": "Flags used by hlint",
105+ "description": "Flags used by hlint",
91− "default": [],
106+ "default": [],
92− "type": "stringArray"
107+ "type": "stringArray"
112+ "title": "Import lens",
113+ "description": "Not currently implemented in Nova",
116+ "key": "haskell.plugin.importLens.codeActionsOn",
117+ "title": "Enable code actions",
120+ "description": "Enables explicit imports code actions"
123+ "key": "haskell.plugin.importLens.codeLensOn",
124+ "title": "Enable code lens",
127+ "description": "Enables explicit imports code lenses"
96 "title": "Eval",
132 "title": "Eval",
97 "type": "section",
133 "type": "section",
98− "children": [{
134+ "children": [
99 "key": "haskell.plugin.eval.globalOn",
136 "key": "haskell.plugin.eval.globalOn",
100 "title": "Enable",
137 "title": "Enable",
101 "type": "boolean",
138 "type": "boolean",
102 "default": true,
139 "default": true,
103 "description": "Enables eval plugin"
140 "description": "Enables eval plugin"
106 "title": "Module name",
144 "title": "Module name",
107 "type": "section",
145 "type": "section",
108− "children": [{
146+ "children": [
109 "key": "haskell.plugin.moduleName.globalOn",
148 "key": "haskell.plugin.moduleName.globalOn",
110 "title": "Enable",
149 "title": "Enable",
111 "type": "boolean",
150 "type": "boolean",
112 "default": true,
151 "default": true,
113 "description": "Enables module name plugin"
152 "description": "Enables module name plugin"
116 "title": "Splice",
156 "title": "Splice",
117 "type": "section",
157 "type": "section",
118− "children": [{
158+ "children": [
119 "key": "haskell.plugin.splice.globalOn",
160 "key": "haskell.plugin.splice.globalOn",
120 "title": "Enable",
161 "title": "Enable",
121 "type": "boolean",
162 "type": "boolean",
122 "default": true,
163 "default": true,
123 "description": "Enables splice plugin (expand template haskell definitions)"
164 "description": "Enables splice plugin (expand template haskell definitions)"
126 "title": "Haddock comments",
168 "title": "Haddock comments",
127 "type": "section",
169 "type": "section",
128− "children": [{
170+ "children": [
129 "key": "haskell.plugin.haddockComments.globalOn",
172 "key": "haskell.plugin.haddockComments.globalOn",
130 "title": "Enable",
173 "title": "Enable",
131 "type": "boolean",
174 "type": "boolean",
132 "default": true,
175 "default": true,
133 "description": "Enables haddock comments plugin"
176 "description": "Enables haddock comments plugin"
136 "title": "Class",
180 "title": "Class",
137 "type": "section",
181 "type": "section",
138− "children": [{
182+ "children": [
139 "key": "haskell.plugin.class.globalOn",
184 "key": "haskell.plugin.class.globalOn",
140 "title": "Enable",
185 "title": "Enable",
141 "type": "boolean",
186 "type": "boolean",
142 "default": true,
187 "default": true,
143 "description": "Enables type class plugin"
188 "description": "Enables type class plugin"
146 "title": "Retrie",
192 "title": "Retrie",
147 "type": "section",
193 "type": "section",
148− "children": [{
194+ "children": [
149 "key": "haskell.plugin.retrie.globalOn",
196 "key": "haskell.plugin.retrie.globalOn",
150 "title": "Enable",
197 "title": "Enable",
151 "type": "boolean",
198 "type": "boolean",
152 "default": true,
199 "default": true,
153 "description": "Enables retrie plugin"
200 "description": "Enables retrie plugin"
156 "title": "Wingman",
204 "title": "Wingman",
157 "type": "section",
205 "type": "section",
158− "children": [{
206+ "children": [
159 "key": "haskell.plugin.tactics.globalOn",
208 "key": "haskell.plugin.tactics.globalOn",
160 "title": "Enable",
209 "title": "Enable",
161 "type": "boolean",
210 "type": "boolean",
162 "default": true,
211 "default": true,
163 "description": "Enables Wingman (tactics) plugin"
212 "description": "Enables Wingman (tactics) plugin"
165− "title": "Configuration",
214+ {
168− "key": "haskell.plugin.tactics.config.auto_gas",
215+ "key": "haskell.plugin.tactics.config.auto_gas",
169− "title": "Gas",
216+ "title": "Gas",
170− "description": "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.",
217+ "description": "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.",
171− "default": 4,
218+ "default": 4,
172− "type": "number"
219+ "type": "number"
174− "key": "haskell.plugin.tactics.config.hole_severity",
222+ "key": "haskell.plugin.tactics.config.hole_severity",
175− "title": "Hole severity",
223+ "title": "Hole severity",
176− "description": "The severity to use when showing hole diagnostics.",
224+ "description": "The severity to use when showing hole diagnostics.",
177− "values": [
225+ "values": [
184− "default": null,
232+ "default": null,
185− "type": "enum"
233+ "type": "enum"
187− "key": "haskell.plugin.tactics.config.max_use_ctor_actions",
236+ "key": "haskell.plugin.tactics.config.max_use_ctor_actions",
188− "title": "Max number of constructors",
237+ "title": "Max number of constructors",
189− "type": "number",
238+ "type": "number",
190− "default": 5,
239+ "default": 5,
191− "description": "Maximum number of `Use constructor <x>` code actions that can appear"
240+ "description": "Maximum number of `Use constructor <x>` code actions that can appear"
193− "key": "haskell.plugin.tactics.config.timeout_duration",
243+ "key": "haskell.plugin.tactics.config.timeout_duration",
194− "title": "Timeout",
244+ "title": "Timeout",
195− "description": "The timeout for Wingman actions, in seconds",
245+ "description": "The timeout for Wingman actions, in seconds",
196− "default": 2,
246+ "default": 2,
197− "type": "number"
247+ "type": "number"
199− "key": "haskell.plugin.tactics.config.proofstate_styling",
250+ "key": "haskell.plugin.tactics.config.proofstate_styling",
200− "title": "Proof states",
251+ "title": "Proof states",
201− "description": "Should Wingman emit styling markup when showing metaprogram proof states?",
252+ "description": "Should Wingman emit styling markup when showing metaprogram proof states?",
202− "default": true,
253+ "default": true,
203− "type": "boolean"
254+ "type": "boolean"
207 "title": "Pragmas",
258 "title": "Pragmas",
208 "type": "section",
259 "type": "section",
209− "children": [{
260+ "children": [
210 "key": "haskell.plugin.pragmas.codeActionsOn",
262 "key": "haskell.plugin.pragmas.codeActionsOn",
211 "title": "Enable code actions",
263 "title": "Enable code actions",
212 "type": "boolean",
264 "type": "boolean",
213 "default": true,
265 "default": true,
214 "description": "Enables pragmas code actions"
266 "description": "Enables pragmas code actions"
216 "key": "haskell.plugin.pragmas.completionOn",
269 "key": "haskell.plugin.pragmas.completionOn",
217 "title": "Enable completions",
270 "title": "Enable completions",
218 "type": "boolean",
271 "type": "boolean",
219 "default": true,
272 "default": true,
220 "description": "Enables pragmas completions"
273 "description": "Enables pragmas completions"
223− "title": "Completions",
276+ {
224− "type": "section",
277+ "title": "Type lenses",
226− "title": "Configuration",
229− "key": "haskell.plugin.ghcide-completions.config.autoExtendOn",
230− "title": "Extend with out-of-scope identifiers",
231− "description": "Extends the import list automatically when completing a out-of-scope identifier",
235− "key": "haskell.plugin.ghcide-completions.config.snippetsOn",
236− "title": "Insert snippets",
237− "description": "Inserts snippets when using code completions",
243 "description": "Not currently implemented in Nova",
278 "description": "Not currently implemented in Nova",
244 "type": "section",
279 "type": "section",
245− "children": [{
280+ "children": [
246 "key": "haskell.plugin.ghcide-type-lenses.globalOn",
282 "key": "haskell.plugin.ghcide-type-lenses.globalOn",
247 "title": "Enable",
283 "title": "Enable",
248 "type": "boolean",
284 "type": "boolean",
249 "default": true,
285 "default": true,
250 "description": "Enables type lenses plugin"
286 "description": "Enables type lenses plugin"
252− "title": "Configuration",
288+ {
255− "key": "haskell.plugin.ghcide-type-lenses.config.mode",
289+ "key": "haskell.plugin.ghcide-type-lenses.config.mode",
256− "title": "Mode",
290+ "title": "Mode",
257− "type": "enum",
291+ "type": "enum",
258− "default": true,
292+ "default": true,
259− "description": "Control how type lenses are shown",
293+ "description": "Control how type lenses are shown",
260− "values": ["always", "exported", "diagnostics"]
294+ "values": ["always", "exported", "diagnostics"]
264 "title": "Refine imports",
298 "title": "Refine imports",
265 "type": "section",
299 "type": "section",
266− "children": [{
300+ "children": [
267 "key": "haskell.plugin.refineImports.globalOn",
302 "key": "haskell.plugin.refineImports.globalOn",
268 "title": "Enable",
303 "title": "Enable",
269 "type": "boolean",
304 "type": "boolean",
270 "default": true,
305 "default": true,
271 "description": "Enables refine imports plugin"
306 "description": "Enables refine imports plugin"
276 "activationEvents": ["onLanguage:haskell", "onLanguage:hs"],
311 "activationEvents": ["onLanguage:haskell", "onLanguage:hs"],
277− "commands": {
312+ "commands":
278− "editor": [{
314+ "editor": [
279 "title": "Format file with Haskell Language Server",
316 "title": "Format file with Haskell Language Server",
280 "command": "format",
317 "command": "format",
281 "when": "editorSyntax == 'haskell' && editorHasFocus",
318 "when": "editorSyntax == 'haskell' && editorHasFocus",
282− "filters": {
319+ "filters":
283 "syntaxes": ["haskell"]
321 "syntaxes": ["haskell"]
286− "extensions": [{
324+ "extensions": [
287 "title": "Stop",
326 "title": "Stop",
288 "paletteTitle": "Stop Haskell Language Server",
327 "paletteTitle": "Stop Haskell Language Server",
289 "command": "stop"
328 "command": "stop"
291 "title": "Restart",
331 "title": "Restart",
292 "paletteTitle": "Restart Haskell Language Server",
332 "paletteTitle": "Restart Haskell Language Server",
293 "command": "restart"
333 "command": "restart"
295 "title": "Clear cached versions",
336 "title": "Clear cached versions",
296 "paletteTitle": "Clear cached versions of Haskell Language Server",
337 "paletteTitle": "Clear cached versions of Haskell Language Server",
297 "command": "clear-cache"
338 "command": "clear-cache"