Merge pull request #3419 from continuedev/dallin/gather-context

Fix gathering context logic
This commit is contained in:
Nate Sesti 2024-12-18 18:24:42 -08:00 • committed by GitHub
commit 632c36dbf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View file

@ -191,7 +191,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,