fixed bug for showing header

This commit is contained in:
Falko Victor Habel 2024-10-02 15:48:08 +03:00
parent 9109c199e6
commit 0416896254
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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);