Skip to content

Commit 47c83e8

Browse files
committed
Refactor the "Save Current Context" command name to "Save Context" and remove the skip_undo_prompt option during temporary checkpoint deletion
1 parent 543617e commit 47c83e8

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Generate meaningful summaries of changes adhering to your style.
135135

136136
### Context
137137

138-
- `Code Web Chat: Save Current Context` - Save the currently checked files as a named context for easy reuse.
138+
- `Code Web Chat: Save Context` - Save the currently checked files as a named context for easy reuse.
139139
- `Code Web Chat: Apply Context` - Apply a saved context to either replace or merge with the currently checked files.
140140

141141
## Enterprise security

‎packages/ui/src/components/editor/panel/Changes/Changes.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC, useState, useEffect, useMemo } from 'react'
1+
import { FC, useState, useMemo } from 'react'
22
import { FileInReview } from '@shared/types/file-in-review'
33
import cn from 'classnames'
44
import styles from './Changes.module.scss'

‎packages/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
},
146146
{
147147
"command": "codeWebChat.saveContext",
148-
"title": "Save Current Context",
148+
"title": "Save Context",
149149
"category": "Code Web Chat",
150150
"icon": "$(save)"
151151
},

‎packages/vscode/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,7 @@ export const apply_chat_response_command = (
985985
if (!checkpoint_promoted) {
986986
await delete_checkpoint({
987987
context,
988-
checkpoint_to_delete: temp_checkpoint,
989-
options: { skip_undo_prompt: true }
988+
checkpoint_to_delete: temp_checkpoint
990989
})
991990
}
992991
}

‎packages/vscode/src/views/panel/frontend/Main/MainView/hooks/use-cycle-mode.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export const use_cycle_mode = (params: {
1616
}) => {
1717
useEffect(() => {
1818
const handle_key_down = (event: KeyboardEvent) => {
19-
if (event.shiftKey && event.key === 'Tab') {
19+
if (event.shiftKey && event.key == 'Tab') {
2020
event.preventDefault()
2121
const go_backwards = event.altKey
2222

23-
if (params.home_view_type === HOME_VIEW_TYPES.WEB) {
23+
if (params.home_view_type == HOME_VIEW_TYPES.WEB) {
2424
const current_index = params.web_modes.indexOf(params.web_mode)
2525
const new_index = go_backwards
2626
? (current_index - 1 + params.web_modes.length) %

0 commit comments

Comments
 (0)