142
143
append(location: ChatAgentLocation, history: IChatModelInputState, historyKey?: string): void {
145
>
146
>
const key = this.getKey(location, historyKey);
147
>
this.viewState.history[key] = this.getHistory(location, historyKey).concat(history).slice(-ChatInputHistoryMaxEntries);
148
>
this.changed = true;
149
>
this._onDidChangeHistory.fire({ kind: 'append', location, historyKey, entry: history });
150
>
}
151
152
moveHistory(location: ChatAgentLocation, fromHistoryKey: string, toHistoryKey: string): void {