Extension crashes and performance issues due to excessive globalState usage for task history #3784
Labels
bug
Something isn't working
Issue - In Progress
Someone is actively working on this. Should link to a PR soon.
Problem
The current task history persistence mechanism stores all history items directly in VSCode's globalState, which is causing several critical issues:
VSCode Warnings: The extension triggers VSCode warnings about excessive globalState usage:
Extension Crashes and UI Issues: Users experience various issues that may be related to memory management and globalState limitations:
Performance Degradation: Even before crashing, the extension suffers from performance issues due to loading and processing large amounts of history data at once.
globalState Thrashing: The current implementation loads and replaces the entire array of task history items in globalState every time a single task is created or modified. This causes:
Scale Problem: A busy developer can accumulate tens of thousands of tasks over the course of a year. At this scale, the globalState approach becomes completely unsustainable:
Possibly Related Issues
Proposed Solution
Implement a file-based storage system for task history:
This approach will:
The text was updated successfully, but these errors were encountered: