Skip to content

Commit 4a1509d

Browse files
committed
Refactor checkpoint creation to immediately reopen the checkpoints quick pick upon success, and standardize quick pick separator labels to lowercase
1 parent a94fc2b commit 4a1509d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const checkpoints_command = (params: {
5252
params.websites_provider
5353
)
5454
if (checkpoint) {
55-
vscode.window.showInformationMessage('Checkpoint created successfully.')
55+
vscode.commands.executeCommand('codeWebChat.checkpoints')
5656
}
5757
}
5858
)
@@ -206,13 +206,15 @@ export const checkpoints_command = (params: {
206206

207207
if (selected.id == 'add-new') {
208208
quick_pick.hide()
209-
await create_checkpoint(
209+
const checkpoint = await create_checkpoint(
210210
params.workspace_provider,
211211
params.context,
212212
params.panel_provider,
213213
params.websites_provider
214214
)
215-
await refresh_and_update_view()
215+
if (checkpoint) {
216+
vscode.commands.executeCommand('codeWebChat.checkpoints')
217+
}
216218
} else if (selected.id == 'revert-last') {
217219
quick_pick.hide()
218220
const temp_checkpoint =

‎packages/vscode/src/views/panel/backend/message-handlers/handle-show-prompt-template-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const handle_show_prompt_template_quick_pick = async (
106106
if (templates.length > 0) {
107107
if (!search_value) {
108108
items.push({
109-
label: 'Recently used',
109+
label: 'recently used',
110110
kind: vscode.QuickPickItemKind.Separator
111111
})
112112
}

0 commit comments

Comments
 (0)