feat: add more to context
This commit is contained in:
parent
326785f022
commit
eae28a87c1
1 changed files with 10 additions and 2 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue