Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,15 @@ class CopilotTokenTracker implements vscode.Disposable {
this.setStatusBarText(`$(loading~spin) Analyzing Logs: ${percentage}%`);
});
this.lastDailyStats = dailyStats;
// Keep lastFullDailyStats fresh: replace the recent 30-day entries so the chart
// shows the same data as the toolbar/details panel on every background refresh.
if (this.lastFullDailyStats) {
const fullMap = new Map(this.lastFullDailyStats.map(d => [d.date, d]));
for (const day of dailyStats) {
fullMap.set(day.date, day);
}
this.lastFullDailyStats = Array.from(fullMap.values()).sort((a, b) => a.date.localeCompare(b.date));
}

if (detailedStats.today.sessions === 0 && detailedStats.last30Days.sessions === 0) {
this.setStatusBarText('$(symbol-numeric) No session data yet');
Expand Down
Loading