fix(file-search): 提升单来源索引上限【已审核 PR】 - #2043
Open
Andreaseszhang wants to merge 1 commit into
Open
Andreaseszhang wants to merge 1 commit into
Andreaseszhang wants to merge 1 commit into
Conversation
Made-with: Proma
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.
概述
将右侧“项目文件”搜索的单来源索引上限从 10,000 提升至 15,000,以扩大大型工作区的文件名与路径搜索覆盖范围;最大递归深度仍保持 10 层,缓存、忽略规则和返回结果限制保持不变。
改动
apps/electron/src/main/lib/workspace-file-search-limits.ts— 集中定义文件搜索的最大递归深度与单来源条目上限,并提供统一的停止扫描判断。apps/electron/src/main/ipc.ts— 用统一边界判断替换内联的深度和 10,000 条限制,保持既有 IPC 返回结构不变。apps/electron/src/main/lib/workspace-file-search-limits.test.ts— 覆盖深度 10/11 与条目 14,999/15,000 的边界行为。apps/electron/package.json— 将@proma/electronpatch 版本从0.19.52升至0.19.53。测试方法
bun test apps/electron/src/main/lib/workspace-file-search-limits.test.ts,确认 2 个边界测试通过。bun run --filter='@proma/electron' typecheck,确认 Electron 包类型检查通过。bun run --filter='@proma/electron' build:main,确认主进程 bundle 构建通过。备注
Made with Proma · GitHub