Skip to content

Conversation

@dohoonk
Copy link

@dohoonk dohoonk commented Nov 26, 2025

Summary

Adds a new "Usage Analytics" view to the Extensions sidebar that tracks
extension usage locally, helping users identify unused extensions.

Problem

Users accumulate extensions over time but have no visibility into which
ones they actually use. This leads to slower VS Code startup and wasted resources.

Solution

  • Track extension activations via IExtensionService.onWillActivateByEvent
  • Track command executions via ICommandService.onDidExecuteCommand
  • Display usage indicators (🟢🟡🔴) in a new Extensions sidebar view
  • Store data locally in user profile (privacy-first design)

New Settings

  • extensions.usageAnalytics.enabled (default: true)
  • extensions.usageAnalytics.retentionDays (default: 90)

Tony Kim added 3 commits November 26, 2025 11:11
- Add IExtensionUsageAnalyticsService interface and data models
- Implement ExtensionUsageAnalyticsService to track activations and commands
- Create ExtensionUsageAnalyticsView tree view in Extensions sidebar
- Add configuration settings: extensions.usageAnalytics.enabled/retentionDays
- Add Clear Extension Usage Data command
- Add CSS styling for usage indicators (frequent/occasional/rare)
- Add unit tests for core analytics logic

Tracks extension usage locally to help users identify unused extensions.
The service was not registered, causing ExtensionUsageAnalyticsView to fail
with 'UNKNOWN service extensionUsageAnalyticsService' error.
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.

2 participants