Repository navigation
feat(search): 支持项目分页、脏文档与可配置搜索预算 - #125
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.
Refs 1lck/Lithe-IDEA#2199
改动
Find in Files 的固定结果上限会隐藏同一文件后面的命中,未保存内容和非 UTF-8 替换也不完整。本 PR 提供桌面端本次搜索改进所需的共享逻辑,保留旧同步请求语义。
workspace.search可显式请求内容分页,按路径/行继续,在匹配内部应用游标,支持同文件跨页;游标绑定查询、选项、预算和不可变编辑快照。scopeExpression路径/包含/排除 glob、includeIgnored及textOverrides。脏快照可加入磁盘索引没有命中的候选。包含 Git 忽略文件仍保留手动排除、结构隐藏和嵌套根边界。workspace.searchPresentation在 Core 生成文件分组、折叠行及已加载行/文件数。计数不是完整出现次数。workspace.searchPreferences解析搜索/替换大小预算,默认16 MiB,替换缺省继承搜索,可配置至64 MiB;索引变体包含大小和忽略选项。filename:line;workspace.rankNames保持通用列表原有规则,避免插件市场额外结果。本次未完成
#2199 保持打开:完整匹配总数、完整 MinusculeMatcher 排序/通配语义、未启动语言服务器时的全工作区类/符号、符号链接跟随及外部目标/循环/监听、生成目录临时覆盖、Windows原生与真实大项目验收均不在本PR。不是搜索与IDEA完全对齐的声明。
验证
macOS arm64,Rust 1.100.0:
cargo test --manifest-path rust/Cargo.toml -p lithe-project:98通过。cargo clippy --manifest-path rust/Cargo.toml -p lithe-project -p lithe-core --all-targets -- -D warnings:通过。--target x86_64-pc-windows-msvcClippy:通过;不是Windows运行验证。verify-rust-core-comments.sh project core:通过(复用本检出rust/target)。node scripts/rust-core/verify-platform-tests.mjs:52个crate放置检查通过。affected-crates.mjs因共享fixture/契约选中整个workspace;其余crate全量验证交由CI,本地只测改动范围。未执行:Windows运行时验收(本机没有Windows VM)、整个Core workspace测试。旧共享边界/日志使用门禁已移除,未将缺失门禁记为通过。没有插件契约、SDK或宿主插件方法变化,没有具体插件依赖。