Repository navigation
feat(editor): 补齐查找替换、恢复与编辑器设置共享规则 - #22
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue
Refs 1lck/Lithe-IDEA#1794;配套 桌面端 PR #1852 一次交付六项编辑器基础能力及 14 张无头截图。
改动
为统一 Viva IDE 补齐共享规则,原生文本缓冲、存储和界面仍由桌面端持有。
editor.find和lithe_core_execute_document_json:调用期间借用不可变 UTF-8 文本,不在 JSON 中复制全文,不保留第二份文档。返回原始字节范围、有界替换计划与当前匹配;支持 Unicode、大小写、整词、正则捕获组、零宽匹配和选区。选区随替换长度更新。editor.preferences.resolve解析行号、空白字符、光标样式/闪烁及自动保存延迟的实际值与上下界。editor.recent.reduce提供有界最近访问、编辑顺序、位置与过滤,不依赖墙上时钟。editor.recovery.decide提供恢复、冲突和配额规则;磁盘改变/删除不授权覆盖。原生端执行私有原子检查点存储。keymap.schemes.reduce迁移旧绑定,支持独立方案保存、选择、重命名和删除;保护默认方案并校验名称、数量和绑定。验证
cargo test --manifest-path rust/Cargo.toml -p lithe-core --lib:1,763 项通过。