Skip to content

Add CopilotSlashCommandProvider for managing runtime slash commands and update related classes#325478

Merged
DonJayamanne merged 4 commits into
mainfrom
don/compatible-meadowlark
Jul 13, 2026
Merged

Add CopilotSlashCommandProvider for managing runtime slash commands and update related classes#325478
DonJayamanne merged 4 commits into
mainfrom
don/compatible-meadowlark

Conversation

@DonJayamanne

Copy link
Copy Markdown
Contributor

Fixes #323565

Copilot AI review requested due to automatic review settings July 12, 2026 10:02
@DonJayamanne DonJayamanne self-assigned this Jul 12, 2026

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.

Pull request overview

Adds reusable runtime slash-command discovery so commands like /env are available in new, provisional chat sessions.

Changes:

  • Extracts slash-command caching and resolution into a shared provider.
  • Uses client-level command discovery when no materialized session exists.
  • Removes duplicate completion-item detail text.
Show a summary per file
File Description
agentHostInputCompletions.ts Removes duplicated attachment detail.
copilotSlashCommandProvider.ts Adds shared command discovery, caching, and resolution.
copilotAgentSession.ts Delegates session command handling to the provider.
copilotAgent.ts Supports commands for provisional sessions.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Medium

Comment thread src/vs/platform/agentHost/node/copilot/copilotAgent.ts Outdated
Comment thread src/vs/platform/agentHost/node/copilot/copilotSlashCommandProvider.ts Outdated
Comment thread src/vs/platform/agentHost/node/copilot/copilotAgent.ts Outdated
@DonJayamanne DonJayamanne marked this pull request as ready for review July 13, 2026 05:31
@DonJayamanne DonJayamanne enabled auto-merge (squash) July 13, 2026 06:21
@DonJayamanne DonJayamanne merged commit 1ee91b3 into main Jul 13, 2026
29 checks passed
@DonJayamanne DonJayamanne deleted the don/compatible-meadowlark branch July 13, 2026 06:36
@vs-code-engineering vs-code-engineering Bot added this to the 1.130.0 milestone Jul 13, 2026
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.

Expect to be able to use /env in new chat sessions

3 participants