Repository navigation
perf(filesearch): move @-picker crawl and fzf index to worker_threads #3455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5461a65
perf(filesearch): move recursive crawl + fzf index to worker_threads
callmeYe c70c58e
fix(filesearch): audit round 1 — worker lifecycle, error paths, and R…
callmeYe 7df087e
fix(filesearch): audit round 2 — ignore fingerprint, dispose, and INS…
callmeYe ccf9df0
fix(filesearch): audit round 3 — harden worker boundary + graceful pa…
callmeYe f37a653
fix(filesearch): audit round 4 — release-blocker packaging + stale-ke…
callmeYe 294a79e
fix(filesearch): audit round 5 — revert AbortError on post-dispose sy…
callmeYe a9915d1
perf(cli): prewarm file index at boot and hide transient loading indi…
callmeYe ee04405
perf(filesearch): add ripgrep crawl backend (gated; fdir stays default)
callmeYe 3fdc49c
perf(filesearch): restore ripgrep as default after re-benchmarking on ~
callmeYe b15c289
fix(filesearch): audit round 6 — Windows rg paths + CR follow-ups
callmeYe 6ffe02b
chore(vscode-ide-companion): drop dead glob helper + bracket-access d…
callmeYe a18a3fb
test(filesearch): Windows — tear down FileIndexService before rmdir'i…
callmeYe ea82f9d
fix(filesearch): audit round 7 — CR follow-ups from @yiliang114
callmeYe 1f5ea90
merge: upstream/main into feat/filesearch-worker-p1
callmeYe 44fcc11
fix(filesearch): audit round 8 — scoped transport install + unref() t…
callmeYe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prewarm options duplicated with useAtCompletion
These options must be byte-for-byte identical to
fileSearchOptionsinuseAtCompletion.ts:202to hit the sameFileIndexServicesingleton (keyed by sha256). The "must match" comment is correct but there's no compile-time or runtime guard — if one side drifts, you silently spawn two workers and the prewarm is wasted.Suggestion: extract a shared
buildFileSearchOptions(config)helper, use it in both places.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ea82f9d. Extracted
buildFileSearchOptions(config, cwd)intouseAtCompletion.ts(exported) and rewired both call sites:AppContainer.tsxprewarm:FileIndexService.for(buildFileSearchOptions(config, config.getTargetDir()))useAtCompletion.tshook:const fileSearchOptions = useMemo(() => buildFileSearchOptions(config, cwd), [config, cwd])Both sites now go through the same helper, so a new field in
FileSearchOptionsis a compile-time change in one place. The "must match" drift risk is gone.