mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 17:43:00 -05:00
Revert AI stats status bar chartViewMode changes
This commit is contained in:
committed by
Henning Dieterichs
parent
9f457435f7
commit
0c6eaf226b
@@ -48,7 +48,6 @@ export class AiStatsStatusBar extends Disposable {
|
||||
const elem = createAiStatsHover({
|
||||
data: this._aiStatsFeature,
|
||||
onOpenSettings: () => openSettingsCommand({ ids: [AI_STATS_SETTING_ID] }).run(this._commandService),
|
||||
chartViewMode: 'days',
|
||||
});
|
||||
return elem.keepUpdated(store).element;
|
||||
},
|
||||
@@ -135,11 +134,10 @@ export interface IAiStatsHoverData {
|
||||
export interface IAiStatsHoverOptions {
|
||||
readonly data: IAiStatsHoverData;
|
||||
readonly onOpenSettings?: () => void;
|
||||
readonly chartViewMode?: ChartViewMode;
|
||||
}
|
||||
|
||||
export function createAiStatsHover(options: IAiStatsHoverOptions) {
|
||||
const chartViewMode = observableValue<ChartViewMode>('chartViewMode', options.chartViewMode ?? 'sessions');
|
||||
const chartViewMode = observableValue<ChartViewMode>('chartViewMode', 'days');
|
||||
const aiRatePercent = options.data.aiRate.map(r => `${Math.round(r * 100)}%`);
|
||||
|
||||
const createToggleButton = (mode: ChartViewMode, tooltip: string, icon: ThemeIcon) => {
|
||||
|
||||
Reference in New Issue
Block a user