l0ng-ai
9658fadd4f
fix(format): keep the caret when a language server replaces the whole file
...
Vue's language server (Volar) answers Reformat Code with a single edit that
replaces the whole document. Applied as is, the caret and the scroll position
jump to the top of the file. Multi-line LSP formatting edits are now reduced to
one edit per changed region (via Document::diff) before they reach the editor,
so the caret and view stay where they were for every server that does this.
2026-11-19 19:05:05 +08:00
..
2026-11-19 17:04:27 +08:00
2026-10-22 18:55:10 +08:00
2026-11-05 14:21:50 +08:00
2026-11-19 17:07:13 +08:00
2026-11-08 19:25:50 +08:00
2026-11-17 13:06:31 +08:00
2026-11-17 19:10:13 +08:00
2026-11-19 18:20:15 +08:00
2026-11-18 09:29:59 +08:00
2026-11-19 17:23:30 +08:00
2026-11-19 17:30:57 +08:00
2026-11-19 04:30:10 +08:00
2026-11-19 04:48:15 +08:00
2026-11-19 17:23:30 +08:00
2026-11-04 18:46:23 +08:00
2026-11-11 22:18:48 +08:00
2026-11-11 19:30:15 +08:00
2026-11-19 19:05:05 +08:00
2026-11-17 00:43:05 +08:00
2026-11-19 01:05:09 +08:00
2026-11-11 19:25:09 +08:00
2026-11-18 23:05:05 +08:00
2026-11-11 17:43:07 +08:00
2026-11-17 10:05:41 +08:00
2026-11-19 11:40:53 +08:00
2026-11-19 17:25:21 +08:00
2026-11-19 09:01:27 +08:00
2026-11-05 20:25:22 +08:00
2026-11-19 04:48:15 +08:00
2026-11-16 04:39:58 +08:00
2026-11-19 00:09:06 +08:00
2026-11-19 17:23:44 +08:00
2026-11-11 17:22:57 +08:00
2026-11-19 18:20:15 +08:00
2026-11-19 00:20:38 +08:00
2026-11-17 16:22:24 +08:00
2026-11-19 17:06:31 +08:00
2026-11-17 10:05:41 +08:00
2026-11-18 23:21:04 +08:00
2026-11-18 09:29:59 +08:00
2026-11-18 16:57:29 +08:00
2026-11-19 11:40:53 +08:00
2026-11-19 17:22:52 +08:00
2026-11-19 01:05:09 +08:00
2026-11-19 17:03:54 +08:00
2026-11-18 22:59:48 +08:00