You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+1-7
Original file line number
Diff line number
Diff line change
@@ -50,19 +50,13 @@ Here is a list of the additional settings currently supported by `haskell-langua
50
50
Plugins have a generic config to control their behaviour. The schema of such config is:
51
51
52
52
-`haskell.plugin.${pluginName}.globalOn`: usually with default true. Whether the plugin is enabled at runtime or it is not. That is the option you might use if you want to disable completely a plugin.
- So to disable the import lens with an explicit list of module definitions you could set `haskell.plugin.importLens.globalOn: false`
55
55
-`haskell.plugin.${pluginName}.${lspCapability}On`: usually with default true. Whether a concrete plugin capability is enabled.
56
56
- Capabilities are the different ways a lsp server can interact with the editor. The current available capabilities of the server are: `callHierarchy`, `codeActions`, `codeLens`, `diagnostics`, `hover`, `symbols`, `completion`, `rename`.
57
57
- Note that usually plugins don't provide all capabilities but some of them or even only one.
58
58
- So to disable code changes suggestions from the `hlint` plugin (but no diagnostics) you could set `haskell.plugin.hlint.codeActionsOn: false`
59
59
- Plugin specific configuration:
60
-
-`tactic` (aka wingman):
61
-
-`haskell.plugin.tactics.config.auto_gas`, default 4: 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.
62
-
-`haskell.plugin.tactics.config.timeout_duration`, default 2: The timeout for Wingman actions, in seconds.
63
-
-`haskell.plugin.tactics.config.hole_severity`, default empty: The severity to use when showing hole diagnostics. These are noisy, but some editors don't allow jumping to all severities. One of `error`, `warning`, `info`, `hint`, `none`.
64
-
-`haskell.plugin.tactics.config.max_use_ctor_actions`, default 5: Maximum number of `Use constructor <x>` code actions that can appear.
65
-
-`haskell.plugin.tactics.config.proofstate_styling`, default true: Should Wingman emit styling markup when showing metaprogram proof states?
66
60
-`eval`:
67
61
-`haskell.plugin.eval.config.diff`, default true: When reloading haddock test results in changes, mark it with WAS/NOW.
68
62
-`haskell.plugin.eval.config.exception`, default false: When the command results in an exception, mark it with `*** Exception:`.
There's only one haskell code change left to do at this point: "link" the plugin in the `HlsPlugins` HLS module.
384
-
However integrating the plugin in haskell-language-server itself will need some changes in config files. The best way is looking for the id (f.e. `hls-tactics-plugin`) of an existing plugin:
384
+
However integrating the plugin in haskell-language-server itself will need some changes in config files. The best way is looking for the id (f.e. `hls-class-plugin`) of an existing plugin:
385
385
-`./cabal*.project` and `./stack*.yaml`: add the plugin package in the `packages` field
386
386
-`./haskell-language-server.cabal`: add a conditional block with the plugin package dependency
387
387
-`./.github/workflows/test.yml`: add a block to run the test suite of the plugin
0 commit comments