Skip to content

Commit 853402e

Browse files
committed
use uninterruptibleMask_ for updateFileDiagnostics
1 parent 76e3470 commit 853402e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ updateFileDiagnostics recorder fp ver k ShakeExtras{diagnostics, hiddenDiagnosti
14901490
let uri' = filePathToUri' fp
14911491
let delay = if null newDiags then 0.1 else 0
14921492
registerEvent debouncer delay uri' $ withTrace ("report diagnostics " <> fromString (fromNormalizedFilePath fp)) $ \tag -> do
1493-
join $ mask_ $ do
1493+
join $ UE.uninterruptibleMask_ $ do
14941494
lastPublish <- atomicallyNamed "diagnostics - publish" $ STM.focus (Focus.lookupWithDefault [] <* Focus.insert newDiags) uri' publishedDiagnostics
14951495
let action = when (lastPublish /= newDiags) $ case lspEnv of
14961496
Nothing -> -- Print an LSP event.

0 commit comments

Comments
 (0)