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:
1 parent
2aa5156905
commit
669e018b85
52 files changed
+1472
-1096
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import { Controller } from "../index"
|
||||
import { UpdateTerminalConnectionTimeoutRequest, UpdateTerminalConnectionTimeoutResponse } from "@shared/proto/cline/state"
|
||||
import { updateGlobalState } from "../../storage/state"
|
||||
|
||||
export async function updateTerminalConnectionTimeout(
|
||||
controller: Controller,
|
||||
@@ -9,7 +8,7 @@ export async function updateTerminalConnectionTimeout(
|
||||
const timeoutMs = request.timeoutMs
|
||||
|
||||
// Update the terminal connection timeout setting in the state
|
||||
await updateGlobalState(controller.context, "shellIntegrationTimeout", timeoutMs)
|
||||
controller.cacheService.setGlobalState("shellIntegrationTimeout", timeoutMs || 4000)
|
||||
|
||||
// Broadcast state update to all webviews
|
||||
await controller.postStateToWebview()
|
||||
|
||||
Reference in new issue
Block a user