mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
agent sessions - adopt new icon to forward (#278330)
This commit is contained in:
@@ -130,7 +130,7 @@ export class ChatContinueInSessionActionItem extends ActionWidgetDropdownActionV
|
||||
}
|
||||
|
||||
protected override renderLabel(element: HTMLElement): IDisposable | null {
|
||||
const icon = this.contextKeyService.contextMatchesRules(ChatContextKeys.remoteJobCreating) ? Codicon.sync : Codicon.indent;
|
||||
const icon = this.contextKeyService.contextMatchesRules(ChatContextKeys.remoteJobCreating) ? Codicon.sync : Codicon.forward;
|
||||
element.classList.add(...ThemeIcon.asClassNameArray(icon));
|
||||
|
||||
return super.renderLabel(element);
|
||||
|
||||
@@ -360,6 +360,7 @@ class AgentSessionsCache {
|
||||
return [];
|
||||
}
|
||||
|
||||
try {
|
||||
const cached = JSON.parse(sessionsCache) as ISerializedAgentSessionViewModel[];
|
||||
return cached.map(session => ({
|
||||
providerType: session.providerType,
|
||||
@@ -382,6 +383,9 @@ class AgentSessionsCache {
|
||||
|
||||
statistics: session.statistics,
|
||||
}));
|
||||
} catch {
|
||||
return []; // invalid data in storage, fallback to empty sessions list
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user