Skip to content

Refactoring extension.ts#115

Merged
aiday-mar merged 1 commit into
mainfrom
partial-otter
May 29, 2026
Merged

Refactoring extension.ts#115
aiday-mar merged 1 commit into
mainfrom
partial-otter

Conversation

@aiday-mar

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

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 refactors the VS Code extension entrypoint (client/src/extension.ts) to move previously module-level runtime state and helper functions into a dedicated ExtensionRuntime class, while also injecting diagnostic-related dependencies into AnalysisCoordinator and routing telemetry sender logging through an outputChannel.

Changes:

  • Introduced ExtensionRuntime to encapsulate activation/deactivation, command registration, LLM proxy handling, and waza-related flows.
  • Updated AnalysisCoordinator to take injected functions for diagnostic retrieval and non-fixable diagnostic detection.
  • Updated ExtensionTelemetrySender to log transport failures via an injected vscode.OutputChannel instead of relying on a module global.
Show a summary per file
File Description
client/src/extension.ts Refactors extension activation/runtime into a class-based structure and updates telemetry/diagnostics wiring to reduce module-level globals.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread client/src/extension.ts
Comment on lines +469 to +470
this.extensionContext = context;
this.outputChannel = vscode.window.createOutputChannel('Chat Customizations Evaluations');
@aiday-mar aiday-mar merged commit f386c9b into main May 29, 2026
3 checks passed
@aiday-mar aiday-mar deleted the partial-otter branch May 29, 2026 15:10
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