Skip to content

chat: remove stale languageModelStats storage migration#301963

Open
xingsy97 wants to merge 1 commit intomicrosoft:mainfrom
xingsy97:wt/cleanup-language-model-stats
Open

chat: remove stale languageModelStats storage migration#301963
xingsy97 wants to merge 1 commit intomicrosoft:mainfrom
xingsy97:wt/cleanup-language-model-stats

Conversation

@xingsy97
Copy link
Member

fix TODO in file src/vs/workbench/contrib/chat/common/languageModelStats.ts:"TODO: @sandy081 - remove this code after a while"

Remove the one-time storage key cleanup loop from the LanguageModelStatsService constructor. This migration code deleted legacy languageModelStats.* and languageModelAccess.* keys from application storage. The migration has been in place long enough for all users to have run it.

Also removes the now-unused IStorageService constructor dependency and its import.

Copilot AI review requested due to automatic review settings March 16, 2026 07:07
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 removes a one-time application storage migration from LanguageModelStatsService that deleted legacy languageModelStats.* / languageModelAccess.* keys, and cleans up the now-unneeded IStorageService dependency.

Changes:

  • Remove the storage key cleanup loop from LanguageModelStatsService’s constructor.
  • Drop the IStorageService constructor injection and its import.

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