remove duplicate gather context, fix dispatch -> false

This commit is contained in:
Dallin Romney 2024-12-16 19:38:10 -08:00
parent 1ec8c56816
commit 7ee2a356a3
2 changed files with 1 additions and 8 deletions

View file

@ -194,7 +194,7 @@ async function resolveEditorContent({
}
if (shouldGatherContext) {
dispatch(setIsGatheringContext(true));
dispatch(setIsGatheringContext(false));
}
return [contextItems, selectedCode, parts];

View file

@ -44,13 +44,6 @@ export const gatherContext = createAsyncThunk<
}
// Resolve context providers and construct new history
const shouldGatherContext =
modifiers.useCodebase || hasSlashCommandOrContextProvider(editorState);
if (shouldGatherContext) {
dispatch(setIsGatheringContext(true));
}
let [selectedContextItems, selectedCode, content] =
await resolveEditorContent({
editorState,