develop #6

Merged
Fabel merged 35 commits from develop into main 2024-10-09 18:50:26 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 0416896254 - Show all commits

View File

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

View File

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