Skip to content

Remove inline chat affordance suppression logic#291350

Merged
jrieken merged 1 commit intomainfrom
joh/remove-affordance-suppression
Jan 28, 2026
Merged

Remove inline chat affordance suppression logic#291350
jrieken merged 1 commit intomainfrom
joh/remove-affordance-suppression

Conversation

@jrieken
Copy link
Member

@jrieken jrieken commented Jan 28, 2026

Users disliked that the inline chat affordance (sparkle icon) would only show once per selection and require changing the selection to see it again. This change removes the suppressAffordance mechanism so the affordance remains visible as long as there is a valid text selection.

Fixes #291036

Users disliked that the inline chat affordance (sparkle icon) would
only show once per selection and require changing the selection to
see it again. This change removes the suppressAffordance mechanism
so the affordance remains visible as long as there is a valid text
selection.

Fixes #291036
Copilot AI review requested due to automatic review settings January 28, 2026 17:43
@jrieken jrieken enabled auto-merge (squash) January 28, 2026 17:43
@jrieken jrieken 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
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 improves the user experience by removing the suppressAffordance mechanism that caused the inline chat affordance (sparkle icon) to disappear after being dismissed once. The affordance now remains visible as long as there is a valid text selection, allowing users to dismiss the widget to see their code and then re-invoke it without changing the selection.

Changes:

  • Removed the suppressAffordance observable that controlled when to hide the affordance after first use
  • Removed logic that suppressed the affordance when the input widget was shown or positioned
  • Cleaned up unused import (isIOverlayWidgetPositionCoordinates)

Reviewed changes

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

File Description
inlineChatAffordance.ts Removed suppressAffordance observable declaration, removed autoruns that set it to true/false, removed references in constructor calls, cleaned up unused import
inlineChatGutterAffordance.ts Removed suppressAffordance parameter from constructor and removed check in data derivation
inlineChatEditorAffordance.ts Removed suppressAffordance parameter from constructor and removed suppression check in autorun

@jrieken jrieken merged commit caf8104 into main Jan 28, 2026
27 of 28 checks passed
@jrieken jrieken deleted the joh/remove-affordance-suppression branch January 28, 2026 18:02
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.

Inline chat in gutter disappears after dismissing

2 participants