Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code snippet provider #13018

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

code snippet provider #13018

wants to merge 1 commit into from

Conversation

lukka
Copy link
Member

@lukka lukka commented Dec 4, 2024

No description provided.


export async function registerCopilotContextProvider(): Promise<void> {
try {
const isCustomSnippetProviderApiEnabled = await telemetry.isExperimentEnabled("CppToolsCustomSnippetsApi");
Copy link
Member

Choose a reason for hiding this comment

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

We can't do audience filtering and set this flag at the same time. Instead, on the Copilot side you'll need to modify the construction of activeExperiments in CompletionContext to check for the experiment, then update the resolver here to respect activeExperiments.

Alternatively, if the intent of this check was to act as a kill-switch then you can leave it as-is (although we'll still need the activeExperiments plumbing). We'll just need to be sure that CppToolsCustomSnippetsApi is at 100% rollout for all VS Code traffic before starting the actual experiment.

@benmcmorran
Copy link
Member

@lukka Soon you should be able to take a dependency on https://www.npmjs.com/package/@github/copilot-language-server to get appropriate typings. The types aren't quite there yet, but https://github.com/github/copilot-client/pull/6250 is adding them.

@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch 2 times, most recently from 991df60 to 22235f3 Compare December 7, 2024 03:09
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 22235f3 to 0679bab Compare December 19, 2024 04:26
@sean-mcmanus sean-mcmanus self-requested a review December 20, 2024 20:09
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 0679bab to b996200 Compare December 21, 2024 00:04
@lukka
Copy link
Member Author

lukka commented Dec 21, 2024

@lukka Soon you should be able to take a dependency on https://www.npmjs.com/package/@github/copilot-language-server to get appropriate typings. The types aren't quite there yet, but github/copilot-client#6250 is adding them.

This is done, thanks!

@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch 2 times, most recently from a7f8949 to d1876a2 Compare December 23, 2024 19:01
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch 4 times, most recently from 2919dcb to 391433a Compare January 9, 2025 00:41
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 391433a to 9ee7b88 Compare January 13, 2025 20:14
@lukka lukka marked this pull request as ready for review January 13, 2025 20:14
@lukka lukka requested a review from a team as a code owner January 13, 2025 20:14
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 9ee7b88 to 0c8d03d Compare January 16, 2025 04:05
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 0c8d03d to 5b63116 Compare January 22, 2025 01:08
@sean-mcmanus sean-mcmanus requested a review from a team January 22, 2025 20:53
@sean-mcmanus sean-mcmanus requested a review from a team January 22, 2025 20:53
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 5b63116 to 40780f2 Compare January 23, 2025 04:27
@sean-mcmanus sean-mcmanus self-requested a review January 24, 2025 18:38
sean-mcmanus
sean-mcmanus previously approved these changes Jan 24, 2025
@sean-mcmanus sean-mcmanus self-requested a review January 24, 2025 18:39
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch 2 times, most recently from dc61198 to 21f7254 Compare January 27, 2025 22:13
sean-mcmanus
sean-mcmanus previously approved these changes Jan 28, 2025
@lukka lukka force-pushed the dev/lucappa/cop-ctx-api branch from 3f89017 to 02ec023 Compare January 28, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pull Request
Development

Successfully merging this pull request may close these issues.

4 participants