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
169
169
let asyncHandlers = mconcat
170
170
[ userHandlers
171
171
, cancelHandler cancelRequest
172
- , exitHandler exit
172
+ , exitHandler stopReactorLoop >> exit
173
173
, shutdownHandler stopReactorLoop
174
174
]
175
175
-- Cancel requests are special since they need to be handled
@@ -266,7 +266,7 @@ shutdownHandler stopReactor = LSP.requestHandler SMethod_Shutdown $ \_ resp -> d
266
266
(_, ide) <- ask
267
267
liftIO $ logDebug (ideLogger ide) " Received shutdown message"
268
268
-- stop the reactor to free up the hiedb connection
269
- liftIO stopReactor
269
+ -- liftIO stopReactor
270
270
-- flush out the Shake session to record a Shake profile if applicable
271
271
liftIO $ shakeShut ide
272
272
resp $ Right Null
You can’t perform that action at this time.
0 commit comments