Skip to content

Conversation

dbaeumer
Copy link
Member

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"

@dbaeumer dbaeumer requested a review from a team as a code owner August 26, 2025 08:19
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools Aug 26, 2025
@sean-mcmanus sean-mcmanus requested a review from lukka August 26, 2025 13:59
@lukka
Copy link
Member

lukka commented Aug 26, 2025

@dbaeumer Would you like me to test these changes locally? I’m happy to do that.
Also, regarding the use of the same context for NES: is this considered an experimental feature that’s off by default? I’m assuming so, since it looks like the setting needs to be manually enabled via:
github.copilot.chat.advanced.inlineEdits.xtabProvider.languageContext.enabled

@dbaeumer
Copy link
Member Author

@lukka I tested it locally with Copilot client & Copilot chat and ensured that you are called in both situations.

And yes github.copilot.chat.advanced.inlineEdits.xtabProvider.languageContext.enabled is considered experimental right now.

Copy link
Member

@lukka lukka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sean-mcmanus sean-mcmanus merged commit eb6d6ab into microsoft:main Aug 27, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Pull Request to Done in cpptools 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants