From ac14b40bbd93ccea991bb81615ed5ea0a1f29a86 Mon Sep 17 00:00:00 2001 From: Kirill Dubovitskiy Date: Tue, 8 Aug 2023 22:58:03 -0700 Subject: Fixed an issue with files from other workspaces showing up in @context search - Adding workspace folder information to react-app that uses - Adding workspace_dir to the meilisearch documents - Keeping the original singlton index as that requires a bigger change - Truncated the context descriptions from absolute paths to only include path relative to workspace directory Note: I have freely changed the store.config model from workspacePath to workspacePaths as it was unused, can't think of a way how it would backfire at the moment with older versions that might have been using it. Might be missing something here --- extension/react-app/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extension/react-app/src/App.tsx') diff --git a/extension/react-app/src/App.tsx b/extension/react-app/src/App.tsx index 879373a0..05b322ff 100644 --- a/extension/react-app/src/App.tsx +++ b/extension/react-app/src/App.tsx @@ -11,6 +11,7 @@ import { setSessionId, setVscMediaUrl, setDataSwitchOn, + setWorkspacePaths, } from "./redux/slices/configSlice"; import { setHighlightedCode } from "./redux/slices/miscSlice"; import { postVscMessage } from "./vscode"; @@ -56,6 +57,7 @@ function App() { dispatch(setSessionId(event.data.sessionId)); dispatch(setVscMediaUrl(event.data.vscMediaUrl)); dispatch(setDataSwitchOn(event.data.dataSwitchOn)); + dispatch(setWorkspacePaths(event.data.workspacePaths)); break; case "highlightedCode": dispatch(setHighlightedCode(event.data.rangeInFile)); -- cgit v1.2.3-70-g09d2