feat: add more to context

This commit is contained in:
Jacob Kim 2025-08-07 15:40:34 -07:00
parent 326785f022
commit eae28a87c1

View file

@ -545,9 +545,17 @@ export class NextEditProvider {
};
} else if (modelName.includes("model-1")) {
ctx = {
userEdits: historyDiff ?? this.diffContext,
recentlyViewedCodeSnippets:
snippetPayload.recentlyVisitedRangesSnippets.map((snip) => ({
filepath: snip.filepath,
content: snip.content,
})) ?? [],
currentFileContent: helper.fileContents,
editableRegionStartLine,
editableRegionEndLine,
editDiffHistory: this.diffContext,
currentFilePath: helper.filepath,
languageShorthand: helper.lang.name,
userExcerpts: helper.fileContents,
};
} else {
ctx = {};