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
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ class ChatEditingSessionStorage {
this._logService.debug(`chatEditingSession: Restoring editing session at ${stateFilePath.toString()}`);
const stateFileContent = await this._fileService.readFile(stateFilePath);
const data = JSON.parse(stateFileContent.value.toString()) as IChatEditingSessionDTO;
if (data.version !== STORAGE_VERSION) {
if (!COMPATIBLE_STORAGE_VERSIONS.includes(data.version)) {
return undefined;
}

Expand Down Expand Up @@ -1356,7 +1356,8 @@ interface IModifiedEntryTelemetryInfoDTO {

type ResourceMapDTO<T> = [string, T][];

const STORAGE_VERSION = 1;
const COMPATIBLE_STORAGE_VERSIONS = [1, 2];
const STORAGE_VERSION = 2;

/** Old history uses IChatEditingSessionSnapshotDTO, new history uses IChatEditingSessionSnapshotDTO. */
interface IChatEditingSessionDTO {
Expand Down