Skip to content

Chat - remove deprecated prompt attribute spelling#301976

Merged
pwang347 merged 2 commits intomicrosoft:mainfrom
xingsy97:wt/remove-user-invokable
Mar 26, 2026
Merged

Chat - remove deprecated prompt attribute spelling#301976
pwang347 merged 2 commits intomicrosoft:mainfrom
xingsy97:wt/remove-user-invokable

Conversation

@xingsy97
Copy link
Copy Markdown
Member

fix TODO in file src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.ts:"TODO: user-invokable is deprecated, remove later and only keep user-invocable"

The user-invokable attribute (a typo of user-invocable) was deprecated and kept as a fallback. This removes all support for the misspelled variant:

  • Remove PromptHeaderAttributes.userInvokable constant
  • Remove fallback in PromptHeader.userInvocable getter
  • Remove deprecated attribute definitions from agent and skill attribute maps
  • Remove validateUserInvokable method and its call sites
  • Remove from allAttributeNames and isNonRecommendedAttribute
  • Update tests to verify user-invokable is now reported as an unknown attribute

Copilot AI review requested due to automatic review settings March 16, 2026 08:08
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

Removes legacy support for the deprecated/misspelled user-invokable prompt header attribute (typo of user-invocable) across prompt parsing, validation, and attribute definitions, and updates tests to assert it is now treated as an unknown attribute.

Changes:

  • Remove the PromptHeaderAttributes.userInvokable constant and parsing fallback in PromptHeader.userInvocable.
  • Remove deprecated attribute definitions and validator logic that previously warned about user-invokable.
  • Update tests to validate user-invocable behavior and ensure user-invokable is reported as unsupported/unknown.

Reviewed changes

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

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.ts Drops the user-invokable constant and removes the fallback when reading userInvocable.
src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.ts Removes deprecated validation path and removes user-invokable from valid/recommended attribute sets so it becomes an unknown attribute.
src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.ts Removes deprecated user-invokable attribute definitions from agent/skill attribute registries and non-recommended checks.
src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptFileParser.test.ts Updates parser tests to only assert user-invocable behavior (no deprecated fallback).
src/vs/workbench/contrib/chat/test/browser/promptSyntax/languageProviders/promptValidator.test.ts Updates validator test to assert user-invokable now produces an “not supported” warning as an unknown attribute.

@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 16, 2026
@mjbvz mjbvz modified the milestones: 1.112.0, 1.113.0 Mar 17, 2026
@xingsy97 xingsy97 changed the title chat: remove deprecated user-invokable prompt attribute Chat - remove deprecated prompt attribute spelling Mar 23, 2026
@jrieken jrieken modified the milestones: 1.113.0, On Deck Mar 25, 2026
@pwang347 pwang347 merged commit 4b05d2f into microsoft:main Mar 26, 2026
18 checks passed
@pwang347 pwang347 modified the milestones: On Deck, 1.114.0 Mar 26, 2026
@xingsy97 xingsy97 deleted the wt/remove-user-invokable branch March 31, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants