Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

feat: add languageDiagnosticsService for nes/inline completion provider#5119

Open
SLdragon wants to merge 1 commit into
microsoft:mainfrom
SLdragon:rentu-update0519
Open

feat: add languageDiagnosticsService for nes/inline completion provider#5119
SLdragon wants to merge 1 commit into
microsoft:mainfrom
SLdragon:rentu-update0519

Conversation

@SLdragon
Copy link
Copy Markdown

@SLdragon SLdragon commented May 19, 2026

Adds an optional languageDiagnosticsService to INESProviderOptions and IInlineCompletionsProviderOptions, allowing external embedders of @vscode/chat-lib to provide their own diagnostics source for NES and inline completion requests.

Copilot AI review requested due to automatic review settings May 19, 2026 03:43
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

Adds an optional languageDiagnosticsService hook to the chat-lib entrypoints so callers can provide diagnostics that can be used to enrich prompts (e.g., with active-file lint/error context).

Changes:

  • Extended INESProviderOptions with optional languageDiagnosticsService.
  • Extended IInlineCompletionsProviderOptions with optional languageDiagnosticsService.
  • Wired both service builders to register the provided diagnostics service, falling back to TestLanguageDiagnosticsService when not supplied.

readonly configOverrides?: Map<ConfigKeyType, unknown>;
/**
* Diagnostics provider used to enrich the NES prompt with the active file's
* lint/error context. When omitted, falls back to a no-op {@link TestLanguageDiagnosticsService}.
@SLdragon SLdragon changed the title feat: add languageDiagnosticsService in INESProviderOptions feat: add languageDiagnosticsService for nes/inline completion provider May 19, 2026
@alexdima
Copy link
Copy Markdown
Member

Thanks for the contribution! This repository has been archived because the project has moved into the main VS Code repository.

Could you please reopen/recreate this PR against:
https://github.com/microsoft/vscode/tree/main/extensions/copilot

We’ll continue reviewing contributions there. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants