Repository navigation
sessions: Add file search to empty Files editor - #341843
Merged
Sandeep Somavarapu (sandy081) merged 4 commits intoOct 15, 2026
Merged
Sandeep Somavarapu (sandy081) merged 4 commits into
Sandeep Somavarapu (sandy081) merged 4 commits into
Conversation
Contributor
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Oct 15, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Search correctness, picker behavior, accessibility help, and cache cleanup have unresolved defects.
7 open findings
Quick Pick focus loses the scoped empty-search help context · New Provider prefix queries are rejected by the Anything whitelist · New Background acceptance loses focus and bypasses native modifiers · New Virtual search prefilter ignores native wildcard and quote syntax · New Virtual index caches failures and discards partial results · New Virtual search ignores sibling-dependent glob excludes · New Inline search leaks the previous file query cache state · New
What changed in this PR
Adds inline file search and a New File action to the Agents Window’s empty Files editor, reusing Anything Quick Access.
Changes:
- Adds session-scoped search across local, remote, and virtual folders.
- Gates the feature behind an experiment-controlled setting.
- Adds accessibility help, regression tests, and visual fixtures.
| File | Description |
|---|---|
| src/vs/workbench/test/browser/componentFixtures/sessions/emptyStates.fixture.ts | Adds idle and search-result fixtures. |
| src/vs/workbench/contrib/search/common/search.ts | Defines scoped search contracts. |
| src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts | Supports delegated, files-only searches. |
| src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.ts | Registers help verbosity setting. |
| src/vs/sessions/contrib/sessions/browser/sessionsActions.ts | Supports compact action icons. |
| src/vs/sessions/contrib/editor/test/browser/editor.contribution.test.ts | Adds focused regression coverage. |
| src/vs/sessions/contrib/editor/browser/media/emptyFileEditor.css | Styles search and actions. |
| src/vs/sessions/contrib/editor/browser/emptyFileEditorSearch.ts | Implements session-scoped file search. |
| src/vs/sessions/contrib/editor/browser/emptyFileEditorAccessibility.ts | Provides search accessibility help. |
| src/vs/sessions/contrib/editor/browser/emptyFileEditor.ts | Integrates search and menu-backed actions. |
| src/vs/sessions/contrib/editor/browser/emptyFileEditor.contribution.ts | Registers actions, help, and experiment setting. |
| src/vs/sessions/common/sessionConfig.ts | Defines the feature setting key. |
| src/vs/sessions/browser/menus.ts | Adds the editor actions menu. |
| src/vs/platform/accessibility/browser/accessibleView.ts | Adds the help provider identifier. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: TylerLeonhardtMatched files:
|
Provide an anchored Quick Pick file search and new-file action for the empty Files editor, including accessibility help and component coverage. Co-authored-by: Copilot <[email protected]>
Route session-scoped file searches through the native Anything Quick Access provider while preserving the embedded input lifecycle. Keep the feature default-off and experiment controlled, and cover file, virtual workspace, and component fixture behavior.\n\nCo-authored-by: Copilot <[email protected]>
Search session working directories with native Quick Access ranking, including virtual workspaces. Use menu-backed actions and add cache, accessibility, and regression coverage. Co-authored-by: Copilot <[email protected]>
Keep inline file search bound to Anything Quick Access while preserving native acceptance, accessibility help, virtual workspace filtering, and cache lifecycle semantics. Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081)
force-pushed
the
sandy081/agents/empty-files-editor-new-action
branch
from
October 15, 2026 20:49
c0372ff to
e2cd525
Compare
Justin Chen (justschen)
approved these changes
Oct 15, 2026
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/empty-files-editor-new-action
branch
October 15, 2026 21:51
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
Why
The empty Files editor previously required navigating to the Files view before opening or creating a file. This provides a focused native file-opening experience while preserving normal Command-P behavior and keeping session-specific roots and virtual-workspace handling outside the shared provider.
Testing
npm run typecheck-client— passednpm run build-fast -- --client-only— passed./scripts/test.sh --run src/vs/sessions/contrib/editor/test/browser/editor.contribution.test.ts --grep "empty file editor"— 12 passingnpm run valid-layers-check— passednpm run stylelint -- src/vs/sessions/contrib/editor/browser/media/emptyFileEditor.css— passed