Skip to content

Commit 13fd421

Browse files
committed
Remove saved_contexts from duplicate workspace context state
1 parent 7e3ba4d commit 13fd421

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

‎packages/vscode/src/commands/duplicate-workspace-command.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ import {
55
API_EDIT_FORMAT_STATE_KEY,
66
CHAT_EDIT_FORMAT_STATE_KEY,
77
DUPLICATE_WORKSPACE_CONTEXT_STATE_KEY,
8-
SAVED_CONTEXTS_STATE_KEY,
98
RANGES_STATE_KEY,
109
type DuplicateWorkspaceContext
1110
} from '../constants/state-keys'
12-
import { SavedContext } from '@/types/context'
1311

1412
export function duplicate_workspace_command(
1513
workspace_provider: WorkspaceProvider,
@@ -44,17 +42,13 @@ export function duplicate_workspace_command(
4442

4543
const ranges =
4644
context.workspaceState.get<Record<string, string>>(RANGES_STATE_KEY)
47-
const saved_contexts = context.workspaceState.get<SavedContext[]>(
48-
SAVED_CONTEXTS_STATE_KEY
49-
)
5045
const context_to_save: DuplicateWorkspaceContext = {
5146
checked_files,
5247
checked_websites,
5348
workspace_root_folders,
5449
timestamp: Date.now(),
5550
open_editors,
56-
ranges,
57-
saved_contexts
51+
ranges
5852
}
5953

6054
const api_edit_format = context.workspaceState.get(

‎packages/vscode/src/constants/state-keys.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { SavedContext } from '@/types/context'
2-
31
// Note: Use kebab-case for new keys
42
export const LAST_APPLIED_CHANGES_STATE_KEY = 'last-applied-changes-state'
53
export const LAST_APPLIED_CHANGES_EDITOR_STATE_STATE_KEY =
@@ -76,7 +74,6 @@ export type DuplicateWorkspaceContext = {
7674
workspace_root_folders: string[]
7775
open_editors?: { path: string; view_column?: number }[]
7876
ranges?: Record<string, string>
79-
saved_contexts?: SavedContext[]
8077
}
8178

8279
export type HistoryEntry = {

0 commit comments

Comments
 (0)