Skip to content

Conversation

@joshspicer
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 18:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for configuring extension-provided tools using short names (e.g., issue_fetch) instead of requiring the full reference name format (e.g., github.vscode-pull-request-github/issue_fetch) in the chat.tools.eligibleForAutoApproval configuration setting. This improvement makes the configuration more user-friendly while maintaining backward compatibility with both full reference names and legacy names.

Key Changes:

  • Extended eligibility lookup logic to support short name matching as a fallback
  • Ensured full reference names take precedence over short names when both are configured
  • Added legacy tool names to the configuration schema enumeration for better validation and IntelliSense support
  • Added comprehensive test coverage for the new short name matching behavior

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/browser/languageModelToolsService.ts Added short name lookup fallback in isToolEligibleForAutoApproval method, checking the tool's reference name when the full reference name doesn't match in the configuration
src/vs/workbench/contrib/chat/test/browser/languageModelToolsService.test.ts Added 4 new tests covering short name matching, full name matching, precedence rules, and eligibility scenarios for extension-provided tools
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Enhanced configuration schema to include legacy tool reference names with duplicate prevention, improving IntelliSense and validation

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.

2 participants