Commit Graph
5 Commits
Author SHA1 Message Date
Muhammad Mustaqeemandcan1357 87cfda9368 test(lsp): restored idle suite and completed the fake process shape 2026-08-16 02:43:35 +02:00
Muhammad Mustaqeemandcan1357 776c9b9c4d test(lsp): localized the native/unit failure with a temporary probe 2026-08-16 02:43:35 +02:00
Muhammad Mustaqeemandcan1357 815ba44173 test(lsp): drove every idle assertion from a single clock read 2026-08-16 02:43:35 +02:00
Muhammad Mustaqeemandcan1357 d62a986689 fix(lsp): stopped reaping clients with in-flight requests (#8390) 2026-08-16 02:43:34 +02:00
roboomp 4a6519f07f fix(lsp): roll back rename_file edits when the move fails
rename_file wrote server-provided reference edits before creating the
destination parent and moving the source, with no rollback. A failed
mkdir/rename (e.g. EXDEV across mounts, EACCES) left the reference files
rewritten while the source stayed put, violating the atomic "moves file
AND rewrites all imports/references" contract.

Extract applyEditsThenRename in lsp/edits.ts: snapshot each edited file,
apply edits, then mkdir+rename; on failure restore every snapshot before
rethrowing. Rewire the rename_file handler to build the summary and hand
the edits to the helper.

Fixes #8379
2026-08-13 03:05:29 +00:00