Skip to content

hide "Ask for Edits" affordance when AI features are disabled#300563

Merged
jrieken merged 2 commits intomicrosoft:mainfrom
lammmab:affordance-fix
Mar 11, 2026
Merged

hide "Ask for Edits" affordance when AI features are disabled#300563
jrieken merged 2 commits intomicrosoft:mainfrom
lammmab:affordance-fix

Conversation

@lammmab
Copy link
Copy Markdown
Contributor

@lammmab lammmab commented Mar 10, 2026

Fixes #300500

Explanation

Check ChatEntitlementContextKeys.Setup.hidden before showing the "Ask for Edits" affordance when text is highlighted.
If AI features are disabled, the affordance is not displayed.

Testing

  1. Build and run VS Code.
  2. Enable Disable AI Features in Settings.
  3. Highlight text in the editor.

Expected result:

the "Ask for Edits" affordance does not appear.

@lammmab lammmab changed the title Fix issue #300500 by checking value of the chat entitlement context key hide "Ask for Help" affordance when AI features are disabled Mar 10, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering bot commented Mar 10, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@jrieken

Matched files:

  • src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts

@lammmab lammmab changed the title hide "Ask for Help" affordance when AI features are disabled hide "Ask for Edits" affordance when AI features are disabled Mar 10, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 11, 2026
@jrieken jrieken merged commit 6a97d56 into microsoft:main Mar 11, 2026
18 checks passed
@lammmab lammmab deleted the affordance-fix branch March 11, 2026 11:25
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.

"Ask for Edits" shows up even if you have "Disable AI Features" enabled

3 participants