Skip to content

Commit e32fc6c

Browse files
committed
Log the initial config we get from the initialize request
1 parent 9b1d6ba commit e32fc6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lsp/src/Language/LSP/Server/Processing.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ initializeRequestHandler logger ServerDefinition{..} vfs sendFunc req = do
151151

152152
initialConfig <- case configObject of
153153
Just o -> case parseConfig defaultConfig o of
154-
Right newConfig -> pure newConfig
154+
Right newConfig -> do
155+
liftIO $ logger <& (LspCore $ NewConfig o) `WithSeverity` Debug
156+
pure newConfig
155157
Left err -> do
156158
-- Warn not error here, since initializationOptions is pretty unspecified
157159
liftIO $ logger <& (LspCore $ ConfigurationParseError o err) `WithSeverity` Warning

0 commit comments

Comments
 (0)