close
Skip to content

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

Merged
ulugbekna merged 3 commits into
microsoft:mainfrom
SLdragon:rentu/chat-lib-language-diagnostics-service
May 26, 2026
Merged

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

Conversation

@SLdragon
Copy link
Copy Markdown
Contributor

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
@ulugbekna ulugbekna merged commit b9b3ede into microsoft:main May 26, 2026
25 checks passed
@ulugbekna
Copy link
Copy Markdown
Contributor

@chrmarti , I reviewed because was asked to, but can also let you take these if you prefer since you authored this code

@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 26, 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.

5 participants