Skip to content

No intellisense docs for custom agent properties#291330

Merged
aeschli merged 1 commit intomainfrom
aeschli/essential-amphibian-363
Jan 28, 2026
Merged

No intellisense docs for custom agent properties#291330
aeschli merged 1 commit intomainfrom
aeschli/essential-amphibian-363

Conversation

@aeschli
Copy link
Copy Markdown
Contributor

@aeschli aeschli commented Jan 28, 2026

Fixes #291124

Copilot AI review requested due to automatic review settings January 28, 2026 16:49
@aeschli aeschli enabled auto-merge (squash) January 28, 2026 16:49
@aeschli aeschli self-assigned this Jan 28, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 28, 2026
Copy link
Copy Markdown
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 fixes a bug where custom agent property suggestions in IntelliSense were missing documentation details. The fix extracts duplicate localization strings into a shared utility function and uses it to populate documentation in the autocompletion provider.

Changes:

  • Created a shared getAttributeDescription function to centralize attribute documentation strings across different prompt types
  • Refactored the hover provider to use the shared function instead of inline localized strings
  • Added documentation to completion items in the autocompletion provider using the shared function

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/common/promptSyntax/languageProviders/promptValidator.ts Added getAttributeDescription function that returns localized documentation for prompt header attributes across all prompt types (instructions, skill, agent, prompt)
src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.ts Refactored to use shared getAttributeDescription function instead of duplicating localized strings, simplifying the hover provider logic
src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.ts Added documentation field to completion items using getAttributeDescription, fixing the missing IntelliSense documentation issue

@aeschli aeschli merged commit 33cbf6b into main Jan 28, 2026
27 of 28 checks passed
@aeschli aeschli deleted the aeschli/essential-amphibian-363 branch January 28, 2026 17:18
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No intellisense docs for custom agent properties

3 participants