Repository navigation
feat(completion): add opt-in coordinated suggestions - #281
Merged
Merged
Conversation
fcoury
force-pushed
the
fcoury/copilot-coordinated
branch
from
August 18, 2026 04:07
6193c3e to
0fb8d10
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#279 keeps ordinary autocomplete and Copilot available together, with the completion popup taking priority. Keep that behavior as the default while letting users opt into a coordinated preview—or turn ordinary completion off and use Copilot alone.
What changed
completion.inline_mode = "coordinated"; the default remains"popup_first".\) requests standalone Copilot.completion.enabled = falseto disable automatic, trigger-character, and Ctrl-Space completion independently of Copilot. Preserve the existing narrower meaning ofcompletion.auto_trigger.How to Test
cargo build --bin red. With Copilot installed and authenticated, open a source file usingtarget/debug/red -c 'copilot.enabled=true'. Without an inline-mode override, the ordinary menu should still hide ghost text and own Tab/Enter.target/debug/red -c 'copilot.enabled=true' -c 'completion.inline_mode="coordinated"'. Type an identifier prefix with ordinary completions. If Copilot returns a compatible extension, both the menu and ghost text should remain visible. Up/Down must invalidate the previous item's preview.\). The menu should close and a standalone Copilot request should run. An older ordinary-completion response must not reopen the menu.target/debug/red -c 'copilot.enabled=true' -c 'completion.enabled=false'. Identifier typing, language-server trigger characters, and Ctrl-Space must not open ordinary completion; Copilot should still work.cargo test --lib completion -- --test-threads=1. In particular,coordinated_rejects_incompatible_results_and_unsafe_ordinary_itemsandcoordinated_selection_change_rejects_old_results_without_a_text_editverify safe fallback and stale-response rejection.Validation completed
cargo clippy --all-targets --all-features -- -D warnings: passed.cargo build --bin red: passed.Live Copilot and end-to-end testing remain intentionally deferred for the manual feel check.