diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-08-10 15:52:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 15:52:44 -0700 |
commit | e07dd52631b78a01402d7569dd976b2505a20f8b (patch) | |
tree | 51d20aa637a074eadd2323b30c437dbf7c04ca47 /extension/react-app/src/redux | |
parent | b82e61cf8ba2be3bcda00699618a83f7c4db275e (diff) | |
parent | 7ca3bea2990d3a1c84d5a544e72827242a78361c (diff) | |
download | sncontinue-e07dd52631b78a01402d7569dd976b2505a20f8b.tar.gz sncontinue-e07dd52631b78a01402d7569dd976b2505a20f8b.tar.bz2 sncontinue-e07dd52631b78a01402d7569dd976b2505a20f8b.zip |
Merge pull request #360 from bra1nDump/fixup-search-cross-workspace-polution
Fixup search cross workspace polution
Diffstat (limited to 'extension/react-app/src/redux')
-rw-r--r-- | extension/react-app/src/redux/slices/configSlice.ts | 8 | ||||
-rw-r--r-- | extension/react-app/src/redux/store.ts | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/extension/react-app/src/redux/slices/configSlice.ts b/extension/react-app/src/redux/slices/configSlice.ts index 59c76066..9cf5402f 100644 --- a/extension/react-app/src/redux/slices/configSlice.ts +++ b/extension/react-app/src/redux/slices/configSlice.ts @@ -7,13 +7,13 @@ export const configSlice = createSlice({ apiUrl: "http://localhost:65432", } as RootStore["config"], reducers: { - setWorkspacePath: ( + setWorkspacePaths: ( state: RootStore["config"], - action: { type: string; payload: string } + action: { type: string; payload: string[] } ) => { return { ...state, - workspacePath: action.payload, + workspacePaths: action.payload, }; }, setApiUrl: ( @@ -57,7 +57,7 @@ export const configSlice = createSlice({ export const { setVscMachineId, setApiUrl, - setWorkspacePath, + setWorkspacePaths, setSessionId, setVscMediaUrl, setDataSwitchOn, diff --git a/extension/react-app/src/redux/store.ts b/extension/react-app/src/redux/store.ts index a9a45ec1..7959a067 100644 --- a/extension/react-app/src/redux/store.ts +++ b/extension/react-app/src/redux/store.ts @@ -14,7 +14,7 @@ export interface ChatMessage { export interface RootStore { config: { - workspacePath: string | undefined; + workspacePaths: string[] | undefined; apiUrl: string; vscMachineId: string | undefined; sessionId: string | undefined; |