Skip to content

Commit 610355c

Browse files
committed
Revert "shut the session before shut the reactor"
This reverts commit f4690c5.
1 parent e6105ff commit 610355c

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
@@ -262,10 +262,10 @@ shutdownHandler :: Recorder (WithPriority Log) -> IO () -> LSP.Handlers (ServerM
262262
shutdownHandler recorder stopReactor = LSP.requestHandler SMethod_Shutdown $ \_ resp -> do
263263
(_, ide) <- ask
264264
liftIO $ logWith recorder Debug LogServerShutdownMessage
265-
-- flush out the Shake session to record a Shake profile if applicable
266-
liftIO $ shakeShut ide
267265
-- stop the reactor to free up the hiedb connection
268266
liftIO stopReactor
267+
-- flush out the Shake session to record a Shake profile if applicable
268+
liftIO $ shakeShut ide
269269
resp $ Right Null
270270

271271
exitHandler :: IO () -> LSP.Handlers (ServerM c)

0 commit comments

Comments
 (0)