check for config enable

This commit is contained in:
Jacob Kim 2025-07-05 17:29:27 -07:00
parent f1cdd5fb75
commit 0f7a002377

View file

@ -199,7 +199,9 @@ export const getAllSnippets = async ({
[], // racePromise(getDiffSnippets(ide)) // temporarily disabled, see https://github.com/continuedev/continue/pull/5882,
racePromise(getClipboardSnippets(ide)),
racePromise(getSnippetsFromRecentlyOpenedFiles(helper, ide)), // giving this one a little more time to complete
racePromise(contextRetrievalService.getStaticContextSnippets(helper)),
helper.options.experimental_enableStaticContextualization
? racePromise(contextRetrievalService.getStaticContextSnippets(helper))
: [],
]);
return {
@ -246,7 +248,9 @@ export const getAllSnippetsWithoutRace = async ({
[], // racePromise(getDiffSnippets(ide)) // temporarily disabled, see https://github.com/continuedev/continue/pull/5882,
getClipboardSnippets(ide),
getSnippetsFromRecentlyOpenedFiles(helper, ide),
contextRetrievalService.getStaticContextSnippets(helper),
helper.options.experimental_enableStaticContextualization
? contextRetrievalService.getStaticContextSnippets(helper)
: [],
]);
return {