Skip to content

Commit 252c500

Browse files
Shut the Shake session on exit, instead of restarting it (#1655)
Restarting the session will result in progress reporting and other messages being sent to the client, which might have already closed the stream Co-authored-by: Potato Hatsue <1793913507@qq.com>
1 parent 246c439 commit 252c500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ exitHandler :: IO () -> LSP.Handlers (ServerM c)
188188
exitHandler exit = LSP.notificationHandler SExit $ const $ do
189189
(_, ide) <- ask
190190
-- flush out the Shake session to record a Shake profile if applicable
191-
liftIO $ restartShakeSession (shakeExtras ide) []
191+
liftIO $ shakeShut ide
192192
liftIO exit
193193

194194
modifyOptions :: LSP.Options -> LSP.Options

0 commit comments

Comments
 (0)