Файли
openidea/crates/ide-workspace/src
ntbang0901 7145b81ac1 fix(workspace): stop rejecting valid workspace edits as out of sync (#8210)
In a Go file, Alt+Enter "Add test for ..." and "Extract declarations to new file" always failed with "edit could not be applied": gopls sends the result through workspace/applyEdit, versioning every file it read from disk 0, and the IDE applied it without first recording what its files held, while a versioned edit of a file that isn't open is only accepted with such a record. Server edits now go through Documents::apply_server_edit, which checks the edit against what its files hold when it arrives; an open document must still be at the version the server names.

With transparent native-to-ascii conversion on, a rename with text occurrences or an agent's edit touching an unmodified .properties file with \uXXXX escapes failed with "changed; request the refactoring again": the unreported-write check compared the decoded buffer with the escaped file text, and now reads the file the way the document was opened.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:37:45 +08:00
..