roymondchen f1aedc4ce7 fix(editor): 修复 CodeEditor setValue 时滚动位置与折叠等视图状态丢失
使用 saveViewState/restoreViewState 替代 getPosition/setPosition,并放到
nextTick 中执行,避免被 setAutoHeight 的 setScrollTop(0) 覆盖,导致光标
位置变化时编辑器滚动跳回顶部。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 12:09:45 +08:00
..
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00
2026-05-14 15:26:22 +08:00