Skip to content

Enhance quick suggestions with inline completions#300371

Merged
jrieken merged 3 commits intomainfrom
joh/satisfactory-slug
Mar 10, 2026
Merged

Enhance quick suggestions with inline completions#300371
jrieken merged 3 commits intomainfrom
joh/satisfactory-slug

Conversation

@jrieken
Copy link
Member

@jrieken jrieken commented Mar 10, 2026

Improve the behavior of quick suggestions by allowing them to trigger only when inline completions are not active, and suppress suggestions when inline completions are being displayed. This change enhances the user experience by reducing unnecessary suggestions during inline completion scenarios.

Fixes #297224

Copilot AI review requested due to automatic review settings March 10, 2026 07:47
@jrieken jrieken enabled auto-merge (squash) March 10, 2026 07:47
@jrieken jrieken self-assigned this Mar 10, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 10, 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 adjusts the editor’s quick-suggest (“quickSuggestions”) behavior to cooperate better with inline completions: quick suggestions should not be permanently suppressed just because an inline completions provider exists, and should instead be suppressed only when inline completions are actually showing.

Changes:

  • Update SuggestModel to wait for inline completions to resolve (when offWhenInlineCompletions is configured) and only trigger quick suggest if inline completions end up not showing.
  • Prevent inline completions from reacting to suggest-widget selection when offWhenInlineCompletions is active, to avoid feedback loops/conflicts.
  • Update configuration descriptions and expand test coverage for the new behavior.

Reviewed changes

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

File Description
src/vs/editor/contrib/suggest/browser/suggestModel.ts Implements “wait for inline completions, then decide” logic for offWhenInlineCompletions.
src/vs/editor/contrib/suggest/test/browser/suggestModel.test.ts Updates existing tests and adds coverage using InlineCompletionsController scenarios.
src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.ts Suppresses exposing selected suggest items to inline completions under offWhenInlineCompletions.
src/vs/editor/common/config/editorOptions.ts Adjusts the user-facing descriptions for offWhenInlineCompletions.

@jrieken jrieken merged commit 5a356d2 into main Mar 10, 2026
19 checks passed
@jrieken jrieken deleted the joh/satisfactory-slug branch March 10, 2026 08: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.

[Insiders] Suggestion cannot be triggered by just typing (aka quickSuggest)

3 participants