feat(vscode): index custom subfolders with multi-folder search and excludes#398
Open
talhaanwarch wants to merge 9 commits into
Open
feat(vscode): index custom subfolders with multi-folder search and excludes#398talhaanwarch wants to merge 9 commits into
talhaanwarch wants to merge 9 commits into
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…file-open Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…lts UI Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ace root Auto-sync previously always synced workspaceFolders[0]. With per-subfolder indexing this left indexed subfolders stale and tried to sync an un-indexed root. Sync now iterates the saved indexedPaths (falling back to the workspace root for backward compat), reapplies saved excludes, and skips folders without an index. State keys are centralized in utils/stateKeys.ts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
Adds three capabilities to the VSCode extension's Semantic Code Search panel so you can index specific subfolders of an open workspace rather than the whole root:
backend, frontend/src). Search fans out across all indexed folders in parallel and merges results by score.Two new panel fields drive this:
node_moduleswas already ignored by default; this PR also addsvenvand.venvto the core default ignore list.Design
Promise.all) and merges by score. Auto-sync is scoped to the indexed folders, not the workspace root.workspaceState, so the panel prefills and search/sync know what to target across reloads.Testing
packages/core: build clean, 28 unit tests pass (incl. new default-ignore test).packages/vscode-extension:tsc --noEmitclean; 8 new unit tests for path/result helpers pass.pnpm buildpasses.node_modules/venvand unlisted folders are skipped, search results are folder-tagged, and clicking a result opens the correct file and line.Screenshot
🤖 Generated with Claude Code