Register the CPP context provider with Copilot Chat as well. #13877
Merged
sean-mcmanus merged 2 commits intomicrosoft:mainfrom Aug 27, 2025
Merged
Register the CPP context provider with Copilot Chat as well. #13877sean-mcmanus merged 2 commits intomicrosoft:mainfrom
sean-mcmanus merged 2 commits intomicrosoft:mainfrom
Conversation
Member
|
@dbaeumer Would you like me to test these changes locally? I’m happy to do that. |
Member
Author
|
@lukka I tested it locally with Copilot client & Copilot chat and ensured that you are called in both situations. And yes |
sean-mcmanus
approved these changes
Aug 27, 2025
sean-mcmanus
pushed a commit
that referenced
this pull request
Sep 5, 2025
* Register context provider API with copilot chat as well.
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.
We are in the process of moving Inline completions from Copilot client to Copilot chat. For a certain time we therefore need to register the context provider with both Copilot client and Copilot chat. Which path is exercised will be determined by VS Code. So for the same [document,position] pair only one resolve request will occurr.
Registering with Copilot Chat has also the advantage that context is resolved during NES. If you want to enable this you can use the setting
"github.copilot.chat.advanced.inlineEdits.xtabProvider.languageContext.enabled"