Skip to content

Commit c772829

Browse files
committed
rethrow language server exceptions in the main thread
1 parent 3be343a commit c772829

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ghcide/src/Development/IDE/LSP/LanguageServer.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ runLanguageServer options inH outH getHieDbLoc defaultConfig onConfigurationChan
141141
logError (ideLogger ide) $
142142
T.pack $ "Fatal error in server thread: " <> show e
143143
exitClientMsg
144+
throwIO e
144145
handleServerException _ = pure ()
145146
_ <- flip forkFinally handleServerException $ runWithDb dbLoc $ \hiedb hieChan -> do
146147
putMVar dbMVar (hiedb,hieChan)

0 commit comments

Comments
 (0)