File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ initialise recorder defaultConfig plugins mainRule lspEnv debouncer options with
93
93
mainRule
94
94
95
95
-- | Shutdown the Compiler Service.
96
- shutdown :: IdeState -> IO ()
96
+ -- shutdown :: Recorder (WithPriority Log) -> IdeState -> IO ()
97
+ shutdown :: Recorder (WithPriority Shake. Log ) -> IdeState -> IO ()
97
98
shutdown = shakeShut
98
99
99
100
-- This will return as soon as the result of the action is
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import qualified Colog.Core as Colog
35
35
import Control.Monad.IO.Unlift (MonadUnliftIO )
36
36
import Development.IDE.Core.IdeConfiguration
37
37
import Development.IDE.Core.Shake hiding (Log , Priority )
38
+ import qualified Development.IDE.Core.Shake as Shake
38
39
import Development.IDE.Core.Tracing
39
40
import qualified Development.IDE.Session as Session
40
41
import Development.IDE.Types.Shake (WithHieDb )
@@ -49,6 +50,7 @@ data Log
49
50
| LogReactorThreadStopped
50
51
| LogCancelledRequest ! SomeLspId
51
52
| LogSession Session. Log
53
+ | LogShake Shake. Log
52
54
| LogLspServer LspServerLog
53
55
| LogServerShutdownMessage
54
56
deriving Show
@@ -265,7 +267,7 @@ shutdownHandler recorder stopReactor = LSP.requestHandler SMethod_Shutdown $ \_
265
267
-- stop the reactor to free up the hiedb connection
266
268
liftIO stopReactor
267
269
-- flush out the Shake session to record a Shake profile if applicable
268
- liftIO $ shakeShut ide
270
+ liftIO $ shakeShut (cmapWithPrio LogShake recorder) ide
269
271
resp $ Right Null
270
272
271
273
exitHandler :: IO () -> LSP. Handlers (ServerM c )
You can’t perform that action at this time.
0 commit comments