Skip to content

Conversation

@dbaeumer
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings October 28, 2025 11:21
@dbaeumer dbaeumer enabled auto-merge October 28, 2025 11:21
@dbaeumer dbaeumer self-assigned this Oct 28, 2025
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 telemetry tracking for context provider statistics in inline completions. The changes enable detailed monitoring of how context providers are used and resolved during code completion requests.

Key changes:

  • Added id fields to context items (SnippetContext, TraitContext, CodeSnippet, Trait) for tracking usage statistics
  • Implemented telemetry event emission for context provider completion statistics
  • Added debugPath field to RunnableResult for improved debugging capabilities

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/platform/languageServer/common/languageContextService.ts Added optional id field to SnippetContext and TraitContext interfaces
src/platform/inlineCompletions/common/api.ts Added optional id field to CodeSnippet interface
src/extension/typescriptContext/vscode-node/types.ts Added debugPath field to ResolvedRunnableResult and propagated through conversion
src/extension/typescriptContext/vscode-node/languageContextService.ts Populated id field when converting context items
src/extension/typescriptContext/vscode-node/inspector.ts Added display of debugPath in tree view
src/extension/typescriptContext/serverPlugin/src/common/protocol.ts Added debugPath field to ContextRunnableResult
src/extension/typescriptContext/serverPlugin/src/common/contextProvider.ts Added debugPath property to RunnableResult class
src/extension/typescriptContext/serverPlugin/src/common/baseContextProviders.ts Implemented getDebugPath method and refactored ID computation
src/extension/typescriptContext/common/serverProtocol.ts Added debugPath field to ContextRunnableResult (duplicates protocol.ts)
src/extension/completions-core/vscode-node/lib/src/prompt/contextProviderStatistics.ts Added opportunityId tracking and method to retrieve all usage statistics
src/extension/completions-core/vscode-node/lib/src/prompt/contextProviderRegistry.ts Set opportunityId and refactored statistics resolution tracking
src/extension/completions-core/vscode-node/lib/src/ghostText/ghostText.ts Added telemetry emission for context provider completion statistics
src/extension/completions-core/vscode-node/bridge/src/completionsTelemetryServiceBridge.ts Added getTelemetryService method for direct access

@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 28, 2025
@dbaeumer dbaeumer added this pull request to the merge queue Oct 28, 2025
Merged via the queue into main with commit 8ae3fe5 Oct 28, 2025
16 checks passed
@dbaeumer dbaeumer deleted the dbaeumer/toxic-wildfowl-maroon branch October 28, 2025 13:32
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