Skip to content

Commit 18cb567

Browse files
authored
Merge pull request #361 from jneira/plugin-config
Include generic plugin configuration Using the hls logo
2 parents 66c218d + 3ab3d22 commit 18cb567

File tree

5 files changed

+120
-12
lines changed

5 files changed

+120
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ out
22
node_modules
33
.vscode-test
44
.DS_Store
5-
dist
5+
dist
6+
*.vsix

images/haskell-logo.png

-11.1 KB
Binary file not shown.

images/hls-logo.png

7.76 KB
Loading

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 117 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "haskell",
33
"displayName": "Haskell",
44
"description": "Haskell language support powered by the Haskell Language Server and ghcide",
5-
"version": "1.2.0",
5+
"version": "1.3.0",
66
"license": "MIT",
77
"publisher": "haskell",
88
"engines": {
@@ -30,7 +30,7 @@
3030
"Linters",
3131
"Other"
3232
],
33-
"icon": "images/haskell-logo.png",
33+
"icon": "images/hls-logo.png",
3434
"galleryBanner": {
3535
"color": "#22172A",
3636
"theme": "dark"
@@ -69,6 +69,7 @@
6969
"properties": {
7070
"haskell.hlintOn": {
7171
"title": "Hlint",
72+
"markdownDeprecationMessage": "**Deprecated**: Please use `#haskell.plugin.hlint.globalOn#` instead.",
7273
"scope": "resource",
7374
"type": "boolean",
7475
"default": true,
@@ -86,12 +87,6 @@
8687
"default": true,
8788
"description": "Compute diagnostics continuously as you type. Turn off to only generate diagnostics on file save."
8889
},
89-
"haskell.liquidOn": {
90-
"scope": "resource",
91-
"type": "boolean",
92-
"default": false,
93-
"description": "Get diagnostics from liquid haskell"
94-
},
9590
"haskell.completionSnippetsOn": {
9691
"title": "Completion Snippets",
9792
"scope": "resource",
@@ -117,7 +112,7 @@
117112
"none"
118113
],
119114
"default": "ormolu",
120-
"description": "The formatter to use when formatting a document or range"
115+
"description": "The formatter to use when formatting a document or range. Ensure the plugin is enabled."
121116
},
122117
"haskell.trace.server": {
123118
"scope": "resource",
@@ -139,7 +134,6 @@
139134
"scope": "resource",
140135
"type": "string",
141136
"enum": [
142-
"haskell-ide-engine",
143137
"haskell-language-server",
144138
"ghcide"
145139
],
@@ -173,6 +167,119 @@
173167
],
174168
"default": "keep-up-to-date",
175169
"markdownDescription": "Only applicable with `#haskell.languageServerVariant#` set to `haskell-language-server`. Determine what to do when a new version of the language server is available."
170+
},
171+
"haskell.plugin.importLens.codeActionsOn": {
172+
"scope": "resource",
173+
"type": "boolean",
174+
"default": true,
175+
"description": "Enables explicit imports code actions"
176+
},
177+
"haskell.plugin.importLens.codeLensOn": {
178+
"scope": "resource",
179+
"type": "boolean",
180+
"default": true,
181+
"description": "Enables explicit imports code lenses"
182+
},
183+
"haskell.plugin.hlint.codeActionsOn": {
184+
"scope": "resource",
185+
"type": "boolean",
186+
"default": true,
187+
"description": "Enables hlint code actions (apply hints)"
188+
},
189+
"haskell.plugin.hlint.diagnosticsOn": {
190+
"scope": "resource",
191+
"type": "boolean",
192+
"default": true,
193+
"description": "Enables hlint diagnostics"
194+
},
195+
"haskell.plugin.eval.globalOn": {
196+
"scope": "resource",
197+
"type": "boolean",
198+
"default": true,
199+
"description": "Enables eval plugin"
200+
},
201+
"haskell.plugin.moduleName.globalOn": {
202+
"scope": "resource",
203+
"type": "boolean",
204+
"default": true,
205+
"description": "Enables module name plugin"
206+
},
207+
"haskell.plugin.splice.globalOn": {
208+
"scope": "resource",
209+
"type": "boolean",
210+
"default": true,
211+
"description": "Enables splice plugin (expand template haskell definitions)"
212+
},
213+
"haskell.plugin.haddockComments.globalOn": {
214+
"scope": "resource",
215+
"type": "boolean",
216+
"default": true,
217+
"description": "Enables haddock comments plugin"
218+
},
219+
"haskell.plugin.class.globalOn": {
220+
"scope": "resource",
221+
"type": "boolean",
222+
"default": true,
223+
"description": "Enables type class plugin"
224+
},
225+
"haskell.plugin.retrie.globalOn": {
226+
"scope": "resource",
227+
"type": "boolean",
228+
"default": true,
229+
"description": "Enables retrie plugin"
230+
},
231+
"haskell.plugin.tactic.globalOn": {
232+
"scope": "resource",
233+
"type": "boolean",
234+
"default": true,
235+
"description": "Enables wingman (tactic) plugin"
236+
},
237+
"haskell.plugin.tactic.config.max_use_ctor_actions": {
238+
"title": "Max number of constructors",
239+
"scope": "resource",
240+
"type": "boolean",
241+
"default": true,
242+
"markdownDescription": "Maximum number of `Use constructor <x>` code actions that can appear"
243+
},
244+
"haskell.plugin.tactic.config.features": {
245+
"scope": "resource",
246+
"type": "Object",
247+
"default": true,
248+
"markdownDescription": "Features set used by wingman (tactic) plugin"
249+
},
250+
"haskell.plugin.pragmas.codeActionsOn": {
251+
"scope": "resource",
252+
"type": "boolean",
253+
"default": true,
254+
"description": "Enables pragmas code actions"
255+
},
256+
"haskell.plugin.pragmas.completionOn": {
257+
"scope": "resource",
258+
"type": "boolean",
259+
"default": true,
260+
"description": "Enables pragmas completions"
261+
},
262+
"haskell.plugin.ghcide-type-lenses.globalOn": {
263+
"scope": "resource",
264+
"type": "boolean",
265+
"default": true,
266+
"description": "Enables type lenses plugin"
267+
},
268+
"haskell.plugin.ghcide-type-lenses.config.mode": {
269+
"scope": "resource",
270+
"type": "string",
271+
"default": true,
272+
"description": "Control how type lenses are shown",
273+
"enum": [
274+
"always",
275+
"exported",
276+
"diagnostics"
277+
],
278+
"enumDescriptions": [
279+
"Always displays type lenses of global bindings",
280+
"Only display type lenses of exported global bindings",
281+
"Follows error messages produced by GHC about missing signatures"
282+
]
176283
}
177284
}
178285
},

0 commit comments

Comments
 (0)