File tree 1 file changed +11
-9
lines changed
ghcide/src/Development/IDE/LSP
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -182,15 +182,17 @@ runLanguageServer options inH outH getHieDbLoc defaultConfig onConfigurationChan
182
182
) $ \ (e :: SomeException ) -> do
183
183
exceptionInHandler e
184
184
k $ ResponseError InternalError (T. pack $ show e) Nothing
185
- _ <- flip forkFinally handleServerException $ untilMVar lifetime $ runWithDb logger dbLoc $ \ hiedb hieChan -> do
186
- putMVar dbMVar (hiedb,hieChan)
187
- forever $ do
188
- msg <- readChan clientMsgChan
189
- -- We dispatch notifications synchronously and requests asynchronously
190
- -- This is to ensure that all file edits and config changes are applied before a request is handled
191
- case msg of
192
- ReactorNotification act -> handle exceptionInHandler act
193
- ReactorRequest _id act k -> void $ async $ checkCancelled _id act k
185
+ _ <- flip forkFinally handleServerException $ do
186
+ untilMVar lifetime $ runWithDb logger dbLoc $ \ hiedb hieChan -> do
187
+ putMVar dbMVar (hiedb,hieChan)
188
+ forever $ do
189
+ msg <- readChan clientMsgChan
190
+ -- We dispatch notifications synchronously and requests asynchronously
191
+ -- This is to ensure that all file edits and config changes are applied before a request is handled
192
+ case msg of
193
+ ReactorNotification act -> handle exceptionInHandler act
194
+ ReactorRequest _id act k -> void $ async $ checkCancelled _id act k
195
+ logInfo logger " Reactor thread stopped"
194
196
pure $ Right (env,ide)
195
197
196
198
You can’t perform that action at this time.
0 commit comments