File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ main = withTelemetryRecorder $ \telemetryRecorder -> do
118
118
then IDEMain. testing (cmapWithPrio LogIDEMain recorder) hlsPlugins
119
119
else IDEMain. defaultArguments (cmapWithPrio LogIDEMain recorder) hlsPlugins
120
120
121
- IDEMain. defaultMain (cmapWithPrio LogIDEMain recorder) arguments
121
+ g (cmapWithPrio LogIDEMain recorder) arguments
122
122
{ IDEMain. argsProjectRoot = Just argsCwd
123
123
, IDEMain. argCommand = argsCommand
124
124
, IDEMain. argsHlsPlugins = IDEMain. argsHlsPlugins arguments <> pluginDescToIdePlugins [lspRecorderPlugin]
Original file line number Diff line number Diff line change @@ -990,16 +990,13 @@ indexHieFile se mod_summary srcPath !hash hf = do
990
990
}
991
991
-- Report the progress once we are done indexing this file
992
992
post = do
993
- mdone <- atomically $ do
993
+ atomically $ do
994
994
-- Remove current element from pending
995
995
pending <- stateTVar indexPending $
996
996
dupe . HashMap. update (\ pendingHash -> guard (pendingHash /= hash) $> pendingHash) srcPath
997
997
modifyTVar' indexCompleted (+ 1 )
998
998
-- If we are done, report and reset completed
999
- whenMaybe (HashMap. null pending) $
1000
- swapTVar indexCompleted 0
1001
-
1002
- atomically $ do
999
+ mdone <- whenMaybe (HashMap. null pending) $ swapTVar indexCompleted 0
1003
1000
writeTQueue indexProgressThread $ do
1004
1001
whenJust (lspEnv se) $ \ env -> LSP. runLspT env $
1005
1002
when (coerce $ ideTesting se) $
You can’t perform that action at this time.
0 commit comments