From db87e89126882f7df5d60214b9ed01ad4d950655 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Fri, 8 Aug 2025 10:30:01 -0700 Subject: [PATCH] feat: use contextSnippets instead of recentlyViewedCodeSnippets --- core/nextEdit/templating/NextEditPromptEngine.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/nextEdit/templating/NextEditPromptEngine.ts b/core/nextEdit/templating/NextEditPromptEngine.ts index 2c9235eb0..00e573646 100644 --- a/core/nextEdit/templating/NextEditPromptEngine.ts +++ b/core/nextEdit/templating/NextEditPromptEngine.ts @@ -30,6 +30,7 @@ import { insertCursorToken, insertEditableRegionTokensWithStaticRange, } from "./utils"; +import { contextSnippetsBlock } from "./model1"; type TemplateRenderer = (vars: TemplateVars) => string; @@ -142,9 +143,7 @@ export async function renderPrompt( ); const model1Ctx: Model1TemplateVars = { - recentlyViewedCodeSnippets: recentlyViewedCodeSnippetsBlock( - ctx.recentlyViewedCodeSnippets, - ), + contextSnippets: contextSnippetsBlock(ctx.contextSnippets), currentFileContent: currentFileContentBlock( ctx.currentFileContent, ctx.editableRegionStartLine,