Skip to content

Commit 84803ed

Browse files
committed
Ensure all workspace files are saved before creating checkpoints
1 parent 3887f56 commit 84803ed

2 files changed

Lines changed: 3 additions & 1 deletion

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": "No-cost AI coding in free chatbots (CWC)",
5-
"version": "1.449.0",
5+
"version": "1.450.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

‎packages/vscode/src/commands/checkpoints-command.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ const create_checkpoint = async (
198198
cancellable: false
199199
},
200200
async () => {
201+
await vscode.workspace.saveAll()
201202
const checkpoint_dir_path = get_checkpoint_path(timestamp)
202203
const checkpoint_dir_uri = vscode.Uri.file(checkpoint_dir_path)
203204
await vscode.workspace.fs.createDirectory(checkpoint_dir_uri)
@@ -231,6 +232,7 @@ const create_temporary_checkpoint = async (
231232
cancellable: false
232233
},
233234
async () => {
235+
await vscode.workspace.saveAll()
234236
const timestamp = Date.now()
235237
const checkpoint_dir_path = get_checkpoint_path(timestamp)
236238
const checkpoint_dir_uri = vscode.Uri.file(checkpoint_dir_path)

0 commit comments

Comments
 (0)