Move rest of state to cache (#5404)

* move rest of state to cacheService

* finish moving state to cache

* remove console logs

* fix types

* don't type cast

* add eslint rule banning use of direct storage apis

* fix types

* move vscode state eslint rule to separate rule since it's error and the others aren't

* fix eslint rules parsing
This commit is contained in:
celestial-vault authored and GitHub committed 2025-08-11 14:46:39 -07:00
1 parent 2aa5156905
commit 669e018b85
52 files changed
+1472 -1096

No files matched your search

@@ -3,7 +3,7 @@ import { writeTextToClipboard } from "@utils/env"
import { HostProvider } from "@/hosts/host-provider"
import { ShowMessageType, ShowTextDocumentRequest } from "@/shared/proto/host/window"
import { buildApiHandler } from "@/api"
import { getAllExtensionState } from "@/core/storage/state"
import { readStateFromDisk } from "@/core/storage/utils/state-helpers"
import { getWorkingState } from "@/utils/git"
import { getCwd } from "@/utils/path"
@@ -71,7 +71,7 @@ The commit message should:
Commit message:`
// Get the current API configuration
const { apiConfiguration } = await getAllExtensionState(context)
const { apiConfiguration } = await readStateFromDisk(context)
// Set to use Act mode for now by default
// TODO: A new mode for commit generation
const currentMode = "act"