Skip to content

Commit e4aec59

Browse files
committed
Fig warning on startup when "initializationOptions": null
1 parent 37d93f1 commit e4aec59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hls-plugin-api/src/Ide/Plugin/Config.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import Ide.Types
2727
-- | Given a DidChangeConfigurationNotification message, this function returns the parsed
2828
-- Config object if possible.
2929
getConfigFromNotification :: IdePlugins s -> Config -> A.Value -> Either T.Text Config
30+
getConfigFromNotification _ defaultValue A.Null = Right defaultValue
3031
getConfigFromNotification plugins defaultValue p =
3132
case A.parse (parseConfig plugins defaultValue) p of
3233
A.Success c -> Right c

0 commit comments

Comments
 (0)