fixed bug for showing header
This commit is contained in:
parent
9109c199e6
commit
0416896254
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fabelous-autocoder",
|
||||
"version": "0.2.61",
|
||||
"version": "0.2.74",
|
||||
"displayName": "Fabelous Autocoder",
|
||||
"description": "A simple to use Ollama autocompletion Plugin",
|
||||
"icon": "icon.png",
|
||||
|
|
|
@ -178,7 +178,7 @@ async function autocompleteCommand(textEditor: vscode.TextEditor, cancellationTo
|
|||
const insertText = completionText + '\n'.repeat(Math.max(0, totalNewLines - completionLineCount));
|
||||
|
||||
// Replace the context with the new text
|
||||
const replaceRange = new vscode.Range(startLine, 0, position.line + 1, 0);
|
||||
const replaceRange = new vscode.Range(startLine, 0, position.line, 0);
|
||||
edit.replace(document.uri, replaceRange, insertText);
|
||||
|
||||
await vscode.workspace.applyEdit(edit);
|
||||
|
|
Loading…
Reference in New Issue