Closed
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:
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
What's going on here? Do we expect the config to be initialized by this point?