Skip to content

nes: lang ctx: register for NES as well#312358

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/nes-langctx-inclusion
Apr 24, 2026
Merged

nes: lang ctx: register for NES as well#312358
ulugbekna merged 1 commit intomainfrom
ulugbekna/nes-langctx-inclusion

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

gated with NES setting for including lang ctx

Co-authored-by: Copilot copilot@github.com

gated with NES setting for including lang ctx

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 24, 2026 14:40
@ulugbekna ulugbekna enabled auto-merge (rebase) April 24, 2026 14:40
@ulugbekna ulugbekna self-assigned this Apr 24, 2026
Copy link
Copy Markdown
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 extends the existing TypeScript language context provider registration so it can also participate in NES (Next Edit Suggestions) language-context requests, aligning the TypeScript context pipeline with other NES-enabled context providers in the Copilot extension.

Changes:

  • Register the TypeScript context provider for ProviderTarget.NES in addition to ProviderTarget.Completions.
  • Minor import organization change (moved CancellationToken import).
Show a summary per file
File Description
extensions/copilot/src/extension/typescriptContext/vscode-node/languageContextService.ts Registers the TypeScript context provider for NES requests via ILanguageContextProviderService targets.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

@@ -1975,7 +1975,7 @@ export class InlineCompletionContribution implements vscode.Disposable, TokenBud
}

// Register with chat always.
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

The comment "Register with chat always." is now misleading since this call registers the provider for both ProviderTarget.Completions and ProviderTarget.NES. Please update the comment to reflect the actual targets (or split the registrations if the intent differs by target).

Suggested change
// Register with chat always.
// Register with the language context provider service for completions and NES.

Copilot uses AI. Check for mistakes.
@ulugbekna ulugbekna merged commit 904a60e into main Apr 24, 2026
30 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/nes-langctx-inclusion branch April 24, 2026 15:01
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 2026
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.

3 participants