Skip to content

Commit 5322d54

Browse files
committed
Move context state restoration until after checkpoint file synchronization is complete
1 parent 6bf6647 commit 5322d54

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎packages/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "CWC is a free AI coding assistant without agents",
5-
"version": "1.572.0",
5+
"version": "1.573.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

‎packages/vscode/src/commands/checkpoints-command/actions/restore-checkpoint.ts‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,6 @@ export const restore_checkpoint = async (params: {
130130
CHECKPOINT_OPERATION_IN_PROGRESS_STATE_KEY,
131131
Date.now()
132132
)
133-
134-
if (params.checkpoint.checked_files) {
135-
await params.context.workspaceState.update(
136-
CONTEXT_CHECKED_PATHS_STATE_KEY,
137-
params.checkpoint.checked_files
138-
)
139-
params.workspace_provider.load_checked_files_state()
140-
}
141-
if (params.checkpoint.checked_websites) {
142-
await params.context.workspaceState.update(
143-
CONTEXT_CHECKED_URLS_STATE_KEY,
144-
params.checkpoint.checked_websites
145-
)
146-
params.websites_provider.load_checked_websites_state()
147-
}
148133
await vscode.window.withProgress(
149134
{
150135
location: vscode.ProgressLocation.Notification,
@@ -353,6 +338,21 @@ export const restore_checkpoint = async (params: {
353338
} catch {}
354339
}
355340

341+
if (params.checkpoint.checked_files) {
342+
await params.context.workspaceState.update(
343+
CONTEXT_CHECKED_PATHS_STATE_KEY,
344+
params.checkpoint.checked_files
345+
)
346+
params.workspace_provider.load_checked_files_state()
347+
}
348+
if (params.checkpoint.checked_websites) {
349+
await params.context.workspaceState.update(
350+
CONTEXT_CHECKED_URLS_STATE_KEY,
351+
params.checkpoint.checked_websites
352+
)
353+
params.websites_provider.load_checked_websites_state()
354+
}
355+
356356
if (
357357
params.checkpoint.title == 'Accepted response preview' &&
358358
params.checkpoint.response_preview_item_created_at &&

0 commit comments

Comments
 (0)