mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Revert these
This commit is contained in:
parent
e4eeab6c72
commit
5c4680a900
2 changed files with 9 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
// npx jest src/core/config/__tests__/ContextProxy.test.ts
|
||||
|
||||
import fs from "fs/promises"
|
||||
|
||||
import * as vscode from "vscode"
|
||||
import { ContextProxy } from "../ContextProxy"
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,6 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
|||
(value: ApiConfigMeta[]) => setState((prevState) => ({ ...prevState, listApiConfigMeta: value })),
|
||||
[],
|
||||
)
|
||||
|
||||
const handleMessage = useCallback(
|
||||
(event: MessageEvent) => {
|
||||
const message: ExtensionMessage = event.data
|
||||
|
|
@ -254,7 +253,13 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
|||
setExperimentEnabled: (id, enabled) =>
|
||||
setState((prevState) => ({ ...prevState, experiments: { ...prevState.experiments, [id]: enabled } })),
|
||||
setApiConfiguration: (value) =>
|
||||
setState((prevState) => ({ ...prevState, apiConfiguration: { ...prevState.apiConfiguration, ...value } })),
|
||||
setState((prevState) => ({
|
||||
...prevState,
|
||||
apiConfiguration: {
|
||||
...prevState.apiConfiguration,
|
||||
...value,
|
||||
},
|
||||
})),
|
||||
setCustomInstructions: (value) => setState((prevState) => ({ ...prevState, customInstructions: value })),
|
||||
setAlwaysAllowReadOnly: (value) => setState((prevState) => ({ ...prevState, alwaysAllowReadOnly: value })),
|
||||
setAlwaysAllowReadOnlyOutsideWorkspace: (value) =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue