File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1357,8 +1357,9 @@ updatePositionMapping IdeState{shakeExtras = ShakeExtras{positionMapping}} Versi
1357
1357
-- Very important to use mapAccum here so that the tails of
1358
1358
-- each mapping can be shared, otherwise quadratic space is
1359
1359
-- used which is evident in long running sessions.
1360
- -- mapAccumWithKey is the one with smaller key accumulate in acc
1361
- EM. mapAccumWithKey (\ acc _k (delta, _) -> let new = addOldDelta delta acc in (new, (delta, acc)))
1360
+ -- mapAccumWithKey is the one with smaller keys accumulated in acc
1361
+ -- so smaller keys can be shared.
1362
+ EM. mapAccumWithKey (\ acc _k (delta, _) -> let new = addDelta delta acc in (new, (delta, acc)))
1362
1363
zeroMapping
1363
1364
(EM. insert _version (shared_change, zeroMapping) mappingForUri)
1364
1365
shared_change = mkDelta changes
You can’t perform that action at this time.
0 commit comments