applied correct naming

This commit is contained in:
Falko Victor Habel 2024-06-02 16:56:10 +02:00
parent 077f18c2f9
commit 71319b43ad
3 changed files with 5 additions and 5 deletions

View File

@ -11,8 +11,8 @@ A simple to use Ollama autocompletion engine with options exposed and streaming
## How to Use
1. In a text document, press space *(or any character in the `completion keys` setting)*. The option `Autocomplete with Ollama` or a preview of the first line of autocompletion will appear. Press `enter` to start generation.
- Alternatively, you can run the `Autocomplete with Ollama` command from the command pallete (or set a keybind).
1. In a text document, press space *(or any character in the `completion keys` setting)*. The option `Fabelous autocompletion` or a preview of the first line of autocompletion will appear. Press `enter` to start generation.
- Alternatively, you can run the `Fabelous autocompletion` command from the command pallete (or set a keybind).
2. After startup, the tokens will be streamed to your cursor.
3. To stop the generation early, press the "Cancel" button on the "Ollama Autocoder" notification or type something.
4. Once generation stops, the notification will disappear.

View File

@ -2,7 +2,7 @@
"name": "fabelous-autocoder",
"displayName": "Fabelous Autocoder",
"description": "A simple to use Ollama autocompletion engine with options exposed and streaming functionality",
"version": "0.0.3",
"version": "0.0.35",
"icon": "icon.png",
"publisher": "fabel",
"license": "CC BY-ND 4.0",
@ -121,7 +121,7 @@
"commands": [
{
"command": "fabelous-autocoder.autocomplete",
"title": "Autocompletion with Ollama"
"title": "Fabelous autocompletion"
}
]
},

View File

@ -156,7 +156,7 @@ async function autocompleteCommand(textEditor: vscode.TextEditor, cancellationTo
// Completion item provider callback for activate
async function provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, cancellationToken: vscode.CancellationToken) {
// Create a completion item
const item = new vscode.CompletionItem("Autocomplete with Ollama");
const item = new vscode.CompletionItem("Fabelous autocompletion");
// Set the insert text to a placeholder
item.insertText = new vscode.SnippetString('${1:}');
// Wait before initializing Ollama to reduce compute usage