add recently opened file snippets

This commit is contained in:
Jacob Kim 2025-06-16 13:28:50 -07:00
parent e6ab397e1c
commit 2f9e5ebcd8

View file

@ -230,6 +230,7 @@ export const getAllSnippetsWithoutRace = async ({
ideSnippets,
diffSnippets,
clipboardSnippets,
recentlyOpenedFileSnippets
] = await Promise.all([
contextRetrievalService.getRootPathSnippets(helper),
contextRetrievalService.getSnippetsFromImportDefinitions(helper),
@ -238,6 +239,7 @@ export const getAllSnippetsWithoutRace = async ({
: [],
[], // racePromise(getDiffSnippets(ide)) // temporarily disabled, see https://github.com/continuedev/continue/pull/5882,
getClipboardSnippets(ide),
getSnippetsFromRecentlyOpenedFiles(helper, ide)
]);
return {
@ -248,5 +250,6 @@ export const getAllSnippetsWithoutRace = async ({
diffSnippets,
clipboardSnippets,
recentlyVisitedRangesSnippets: helper.input.recentlyVisitedRanges,
recentlyOpenedFileSnippets
};
};