-
-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
While working on a fix for #1873, I noticed that my plugin's configuration wasn't available when building the IdeOptions
. But that's odd, because it's obviously getting pulled:
config <- LSP.runLspT env LSP.getConfig |
Tracing this, however, gives the following object:
Config {checkParents = CheckOnSaveAndClose, checkProject = True, hlintOn = True, diagnosticsOnChange = True, diagnosticsDebounceDuration = 350000, liquidOn = False, formatOnImportOn = True, formattingProvider = "ormolu", maxCompletions = 40, plugins = fromList []}
which correspond exactly with the Default
instance:
haskell-language-server/hls-plugin-api/src/Ide/Plugin/Config.hs
Lines 63 to 78 in dee0216
instance Default Config where | |
def = Config | |
{ checkParents = CheckOnSaveAndClose | |
, checkProject = True | |
, hlintOn = True | |
, diagnosticsOnChange = True | |
, diagnosticsDebounceDuration = 350000 | |
, liquidOn = False | |
, formatOnImportOn = True | |
-- , formattingProvider = "brittany" | |
, formattingProvider = "ormolu" | |
-- , formattingProvider = "floskell" | |
-- , formattingProvider = "stylish-haskell" | |
, maxCompletions = 40 | |
, plugins = Map.empty | |
} |
What's going on here? Do we expect the config to be initialized by this point?
Metadata
Metadata
Assignees
Labels
component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..