Skip to content

sessions: Add file search to empty Files editor - #341843

Merged
Sandeep Somavarapu (sandy081) merged 4 commits into
mainfrom
sandy081/agents/empty-files-editor-new-action
Oct 15, 2026
Merged

Sandeep Somavarapu (sandy081) merged 4 commits into
mainfrom
sandy081/agents/empty-files-editor-new-action

Conversation

@sandy081

Copy link
Copy Markdown
Member

Summary

  • add an inline file search and menu-backed New File action to the empty Files editor in the Agents Window
  • reuse the native Anything Quick Access provider for scoring, ranking, highlighting, file icons, keyboard navigation, accessibility, and editor opening
  • search session working directories, including multi-root, remote/provider-backed, and bounded virtual workspaces
  • keep the feature experiment-controlled, defaulting on in Insiders, and add accessibility help plus focused regression and component-fixture coverage

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 — passed
  • npm 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 passing
  • npm run valid-layers-check — passed
  • targeted ESLint across all changed TypeScript files — passed
  • npm run stylelint -- src/vs/sessions/contrib/editor/browser/media/emptyFileEditor.css — passed
  • Component Explorer Files and FilesWithSearchResults fixtures — 6 passing across Dark, Light, and Dark High Contrast

Copilot AI balanced review requested due to automatic review settings October 15, 2026 18:57
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.143.0 milestone Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 6eb319c4 Current: 657ead4c

Changed (1)

sessions/emptyStates/emptyStates/Files/Light
Before After
before after

Added (1)

sessions/emptyStates/emptyStates/FilesWithSearchResults/Light

current

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Search correctness, picker behavior, accessibility help, and cache cleanup have unresolved defects.

7 open findings
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.

@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

TylerLeonhardt

Matched files:

  • src/vs/platform/quickinput/browser/quickAccess.ts
  • src/vs/platform/quickinput/common/quickAccess.ts

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]>
@sandy081
Sandeep Somavarapu (sandy081) force-pushed the sandy081/agents/empty-files-editor-new-action branch from c0372ff to e2cd525 Compare October 15, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants