File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ghcide/src/Development/IDE/LSP Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ setupLSP recorder getHieDbLoc userHandlers getIdeState clientMsgVar = do
169169 let asyncHandlers = mconcat
170170 [ userHandlers
171171 , cancelHandler cancelRequest
172- , exitHandler exit
172+ , exitHandler stopReactorLoop >> exit
173173 , shutdownHandler stopReactorLoop
174174 ]
175175 -- Cancel requests are special since they need to be handled
@@ -266,7 +266,7 @@ shutdownHandler stopReactor = LSP.requestHandler SMethod_Shutdown $ \_ resp -> d
266266 (_, ide) <- ask
267267 liftIO $ logDebug (ideLogger ide) " Received shutdown message"
268268 -- stop the reactor to free up the hiedb connection
269- liftIO stopReactor
269+ -- liftIO stopReactor
270270 -- flush out the Shake session to record a Shake profile if applicable
271271 liftIO $ shakeShut ide
272272 resp $ Right Null
You can’t perform that action at this time.
0 commit comments