Skip to content

Commit 81440e0

Browse files
committed
Limit checkpoint edit and delete actions exclusively to user-created checkpoints
1 parent 1c62b24 commit 81440e0

2 files changed

Lines changed: 14 additions & 11 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": "Non-agentic AI coding in free chatbots (CWC)",
5-
"version": "1.460.0",
5+
"version": "1.461.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,19 @@ export const checkpoints_command = (
117117
detail: c.description,
118118
checkpoint: c,
119119
index,
120-
buttons: [
121-
{
122-
iconPath: new vscode.ThemeIcon('edit'),
123-
tooltip: 'Edit Description'
124-
},
125-
{
126-
iconPath: new vscode.ThemeIcon('trash'),
127-
tooltip: 'Delete'
128-
}
129-
]
120+
buttons:
121+
c.title == 'Created by user'
122+
? [
123+
{
124+
iconPath: new vscode.ThemeIcon('edit'),
125+
tooltip: 'Edit Description'
126+
},
127+
{
128+
iconPath: new vscode.ThemeIcon('trash'),
129+
tooltip: 'Delete'
130+
}
131+
]
132+
: undefined
130133
}))
131134
]
132135
quick_pick.busy = false

0 commit comments

Comments
 (0)