Skip to content

Commit 2b1f02e

Browse files
committed
Move RANGES_STATE_KEY to the ranges migration file
1 parent 88373a0 commit 2b1f02e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/editor/src/constants/state-keys.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const LAST_APPLIED_CLIPBOARD_CONTENT_STATE_KEY =
55
'last-applied-clipboard-content'
66
export const LAST_APPLIED_RAW_INSTRUCTIONS_STATE_KEY =
77
'last-applied-raw-instructions'
8-
export const RANGES_STATE_KEY = 'ranges'
98
export const LAST_RANGES_SAVE_LOCATION_STATE_KEY = 'last-ranges-save-location'
109
export const LAST_APPLY_CONTEXT_OPTION_STATE_KEY = 'last-apply-context-option'
1110
export const CONTEXT_SELECTED_PATHS_STATE_KEY = 'context-selected-paths'

‎apps/editor/src/migrations/migrate-ranges-to-global-storage.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Logger } from '@shared/utils/logger'
55
import { get_error_message } from '@/utils/get-error-message'
66
import { RangesStorage } from '@/utils/global-workspace-storage'
77
import { normalize_path } from '@/utils/normalize-path'
8-
import { RANGES_STATE_KEY } from '@/constants/state-keys'
8+
9+
export const RANGES_STATE_KEY = 'ranges'
910

1011
const MIGRATION_ID = 'ranges-to-global-storage-migration-20261108'
1112

0 commit comments

Comments
 (0)