Skip to content

agentHost: complete skills after whitespace#320721

Merged
DonJayamanne merged 1 commit into
mainfrom
agents/today-in-skill-completion-provider-for-agent-hos-9e247e0d
Jun 10, 2026
Merged

agentHost: complete skills after whitespace#320721
DonJayamanne merged 1 commit into
mainfrom
agents/today-in-skill-completion-provider-for-agent-hos-9e247e0d

Conversation

@DonJayamanne

Copy link
Copy Markdown
Contributor

Support skill slash completions when the token appears after whitespace in a user message while keeping slash commands leading-only.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Support skill slash completions when the token appears after whitespace in a user message while keeping slash commands leading-only.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 04:32
@DonJayamanne DonJayamanne enabled auto-merge June 10, 2026 04:32

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

Enables Agent Host skill slash-completions when the / token is typed after whitespace inside a user message, while keeping slash-command completion logic leading-only (by continuing to use extractLeadingSlashToken in command providers).

Changes:

  • Add extractWhitespaceDelimitedSlashToken to extract the current whitespace-delimited /... token at the cursor.
  • Switch AgentHostSkillCompletionProvider to use the new extractor so skills can complete mid-message.
  • Extend unit tests to cover in-message token replacement, whitespace-delimited behavior, and negative cases.
Show a summary per file
File Description
src/vs/platform/agentHost/test/node/agentHostSkillCompletionProvider.test.ts Adds test coverage for mid-message skill completion and correct replacement ranges.
src/vs/platform/agentHost/node/agentHostSlashCompletion.ts Introduces a whitespace-delimited slash-token extractor shared by completion providers.
src/vs/platform/agentHost/node/agentHostSkillCompletionProvider.ts Updates skill completion extraction to support slash tokens after whitespace.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Comment thread src/vs/platform/agentHost/node/agentHostSlashCompletion.ts
Comment thread src/vs/platform/agentHost/node/agentHostSkillCompletionProvider.ts
@DonJayamanne DonJayamanne merged commit 43d16cd into main Jun 10, 2026
40 of 41 checks passed
@DonJayamanne DonJayamanne deleted the agents/today-in-skill-completion-provider-for-agent-hos-9e247e0d branch June 10, 2026 07:22
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 10, 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.

3 participants