Skip to content

feat: add languageDiagnosticsService option for nes/inline completion provider#317678

Open
SLdragon wants to merge 3 commits into
microsoft:mainfrom
SLdragon:rentu/chat-lib-language-diagnostics-service
Open

feat: add languageDiagnosticsService option for nes/inline completion provider#317678
SLdragon wants to merge 3 commits into
microsoft:mainfrom
SLdragon:rentu/chat-lib-language-diagnostics-service

Conversation

@SLdragon
Copy link
Copy Markdown

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 21, 2026 02:22
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 @vscode/chat-lib node entrypoint so external embedders can inject their own ILanguageDiagnosticsService, enabling NES and inline completions to enrich prompts with diagnostics from a host-provided source instead of always using the default test/in-memory implementation.

Changes:

  • Added optional languageDiagnosticsService to INESProviderOptions.
  • Added optional languageDiagnosticsService to IInlineCompletionsProviderOptions.
  • Updated both service setup paths to register ILanguageDiagnosticsService from options when provided, otherwise fall back to TestLanguageDiagnosticsService.

Comment thread extensions/copilot/src/lib/node/chatLibMain.ts
@alexr00 alexr00 assigned ulugbekna and unassigned alexr00 May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants