File tree 1 file changed +2
-3
lines changed
lsp-test/src/Language/LSP/Test 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -379,12 +379,11 @@ updateState (FromServerMess SWorkspaceApplyEdit r) = do
379
379
-- Update VFS to new document versions
380
380
let sortedVersions = map (sortBy (compare `on` (^. textDocument . version))) groupedParams
381
381
latestVersions = map ((^. textDocument) . last ) sortedVersions
382
- bumpedVersions = map (version . _Just +~ 1 ) latestVersions
383
382
384
- forM_ bumpedVersions $ \ (VersionedTextDocumentIdentifier uri v) ->
383
+ forM_ latestVersions $ \ (VersionedTextDocumentIdentifier uri v) ->
385
384
modify $ \ s ->
386
385
let oldVFS = vfs s
387
- update (VirtualFile oldV file_ver t) = VirtualFile (fromMaybe oldV v) (file_ver + 1 ) t
386
+ update (VirtualFile oldV file_ver t) = VirtualFile (fromMaybe oldV v) (file_ver + 1 ) t
388
387
newVFS = updateVFS (Map. adjust update (toNormalizedUri uri)) oldVFS
389
388
in s { vfs = newVFS }
390
389
You can’t perform that action at this time.
0 commit comments