We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d96c52d commit cd49ec4Copy full SHA for cd49ec4
ghcide/src/Development/IDE/LSP/LanguageServer.hs
@@ -200,7 +200,11 @@ cancelHandler cancelRequest = LSP.notificationHandler SCancelRequest $ \Notifica
200
liftIO $ cancelRequest (SomeLspId _id)
201
202
exitHandler :: IO () -> LSP.Handlers (ServerM c)
203
-exitHandler exit = LSP.notificationHandler SExit (const $ liftIO exit)
+exitHandler exit = LSP.notificationHandler SExit $ const $ do
204
+ (_, ide) <- ask
205
+ -- flush out the Shake session to record a Shake profile if applicable
206
+ liftIO $ restartShakeSession (shakeExtras ide) []
207
+ liftIO exit
208
209
modifyOptions :: LSP.Options -> LSP.Options
210
modifyOptions x = x{ LSP.textDocumentSync = Just $ tweakTDS origTDS
0 commit comments