Skip to content

Conversation

@luabud
Copy link
Member

@luabud luabud commented Feb 12, 2026

No description provided.

@luabud luabud self-assigned this Feb 12, 2026
@luabud luabud marked this pull request as ready for review February 12, 2026 03:05
@luabud luabud requested review from Copilot and ulugbekna February 12, 2026 03:05
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 12, 2026
Copy link
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 adds the active model identifier to the “provideInlineEdit” (NES/completions) telemetry payload so completions telemetry can be correlated with the model used.

Changes:

  • Extend LlmNESTelemetryBuilder to optionally include a modelName property in its built telemetry object.
  • Populate modelName for completions by wiring engineInfo.modelId into the telemetry builder during ghost text computation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/extension/inlineEdits/node/nextEditProviderTelemetry.ts Adds modelName support to LlmNESTelemetryBuilder so it can be emitted in the telemetry payload.
src/extension/completions-core/vscode-node/lib/src/ghostText/ghostText.ts Sets telemetry builder model name from the selected completion engine model id.

Comment on lines 255 to 257
const engineInfo = this.instantiationService.invokeFunction(getEngineRequestInfo, preIssuedTelemetryDataWithExp);
telemetryBuilder.setModelName(engineInfo.modelId);
const ghostTextOptions = { ...defaultOptions, ...options, tokenizer: engineInfo.tokenizer };
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

New telemetry behavior (populating modelName via telemetryBuilder.setModelName(engineInfo.modelId)) isn’t covered by a unit test. Since this value ultimately affects the provideInlineEdit / copilot-nes/provideInlineEdit events, please add/extend a test (e.g., in ghostText.test.ts or a provider-level test using the in-memory telemetry spy) to assert modelName is present in the emitted telemetry for completions.

Copilot uses AI. Check for mistakes.
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.

1 participant