File tree 1 file changed +5
-8
lines changed
ghcide/src/Development/IDE/LSP
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -202,14 +202,6 @@ handleInit recorder getHieDbLoc getIdeState lifetime exitClientMsg clearReqId wa
202
202
-- The database needs to be open for the duration of the reactor thread, but we need to pass in a reference
203
203
-- to 'getIdeState', so we use this dirty trick
204
204
dbMVar <- newEmptyMVar
205
- ~ (WithHieDbShield withHieDb,hieChan) <- unsafeInterleaveIO $ takeMVar dbMVar
206
-
207
- ide <- getIdeState env root withHieDb hieChan
208
-
209
- let initConfig = parseConfiguration params
210
-
211
- logWith recorder Info $ LogRegisteringIdeConfig initConfig
212
- registerIdeConfiguration (shakeExtras ide) initConfig
213
205
214
206
let handleServerException (Left e) = do
215
207
logWith recorder Error $ LogReactorThreadException e
@@ -246,6 +238,11 @@ handleInit recorder getHieDbLoc getIdeState lifetime exitClientMsg clearReqId wa
246
238
ReactorNotification act -> handle exceptionInHandler act
247
239
ReactorRequest _id act k -> void $ async $ checkCancelled _id act k
248
240
logWith recorder Info LogReactorThreadStopped
241
+ (WithHieDbShield withHieDb,hieChan) <- takeMVar dbMVar
242
+ ide <- getIdeState env root withHieDb hieChan
243
+ let initConfig = parseConfiguration params
244
+ logWith recorder Info $ LogRegisteringIdeConfig initConfig
245
+ registerIdeConfiguration (shakeExtras ide) initConfig
249
246
pure $ Right (env,ide)
250
247
251
248
You can’t perform that action at this time.
0 commit comments