Skip to content

Commit 1efefa7

Browse files
committed
Move checkpoint logic from commands to message handlers and remove checkpoint-related commands
- remove checkpoints command
1 parent 1d86226 commit 1efefa7

24 files changed

Lines changed: 3 additions & 2427 deletions

‎apps/editor/package.json‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -277,17 +277,6 @@
277277
"category": "Code Web Chat",
278278
"icon": "$(search)"
279279
},
280-
{
281-
"command": "codeWebChat.checkpoints",
282-
"title": "%codeWebChat.checkpoints.title%",
283-
"category": "Code Web Chat",
284-
"icon": "$(history)"
285-
},
286-
{
287-
"command": "codeWebChat.createNewCheckpoint",
288-
"title": "%codeWebChat.createNewCheckpoint.title%",
289-
"category": "Code Web Chat"
290-
},
291280
{
292281
"command": "codeWebChat.settings",
293282
"title": "%codeWebChat.settings.title%",

‎apps/editor/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import * as vscode from 'vscode'
22
import * as fs from 'fs'
3-
import {
4-
create_checkpoint,
5-
delete_checkpoint
6-
} from '../checkpoints-command/actions'
73
import { FileInPreview } from '@shared/types/file-in-preview'
8-
import { get_checkpoint_path } from '../checkpoints-command/utils'
94
import { PanelProvider } from '@/views/panel/backend/panel-provider'
105
import { dictionary } from '@shared/constants/dictionary'
116
import { WorkspaceProvider } from '@/context/providers/workspace/workspace-provider'
@@ -20,7 +15,6 @@ import {
2015
process_chat_response,
2116
ApplyChatResponseCommandArgs
2217
} from './response-processor'
23-
import { Checkpoint } from '../checkpoints-command/types'
2418
import { CHECKPOINTS_STATE_KEY } from '@/constants/state-keys'
2519
import { ResponseHistoryItem } from '@shared/types/response-history-item'
2620
import { ApiManager } from '@/services/api-manager'
@@ -30,6 +24,9 @@ import {
3024
CwcPreviewProvider
3125
} from './utils/preview/virtual-document-provider'
3226
import { parse_response } from './utils/clipboard-parser'
27+
import { Checkpoint } from '@/views/panel/backend/message-handlers/checkpoints/types'
28+
import { create_checkpoint, delete_checkpoint } from '@/views/panel/backend/message-handlers/checkpoints/actions'
29+
import { get_checkpoint_path } from '@/views/panel/backend/message-handlers/checkpoints/utils'
3330

3431
let in_progress = false
3532

‎apps/editor/src/commands/checkpoints-command/actions/clear-all-checkpoints.ts‎

Lines changed: 0 additions & 64 deletions
This file was deleted.

‎apps/editor/src/commands/checkpoints-command/actions/create-checkpoint.ts‎

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)