summaryrefslogtreecommitdiff
path: root/extension/react-app/src/redux
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-11 13:42:59 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-11 13:42:59 -0700
commit4eaf254b3fa974ef8a7ab6b08418ea8283a4f22a (patch)
tree0e6789f8f80e08d0ae497f08c76baa9876bebc34 /extension/react-app/src/redux
parent1936f725d226bea2e13d5d88c1dd7a9a02ddd259 (diff)
parent48ee1334dfd21dbe55cf66f39da1249619103e81 (diff)
downloadsncontinue-4eaf254b3fa974ef8a7ab6b08418ea8283a4f22a.tar.gz
sncontinue-4eaf254b3fa974ef8a7ab6b08418ea8283a4f22a.tar.bz2
sncontinue-4eaf254b3fa974ef8a7ab6b08418ea8283a4f22a.zip
Merge branch 'main' into ci-testing
Diffstat (limited to 'extension/react-app/src/redux')
-rw-r--r--extension/react-app/src/redux/slices/configSlice.ts8
-rw-r--r--extension/react-app/src/redux/store.ts2
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;