Skip to content

Commit 5de2de3

Browse files
committed
move stopReactor to exit
1 parent da65845 commit 5de2de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)