feat: use contextSnippets instead of recentlyViewedCodeSnippets
This commit is contained in:
parent
92f60e2d15
commit
db87e89126
1 changed files with 2 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue