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