Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"inference.delay": {
"type": "number",
"default": 250,
"description": "Completion request delay in milliseconds (0 - no delay, -1 - no completions).",
"description": "Completion request delay in milliseconds (0 - no delay, -1 - no automatic completions).",
"order": 8,
"minimum": -1,
"maximum": 5000
Expand Down
4 changes: 2 additions & 2 deletions src/prompts/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class PromptProvider implements vscode.InlineCompletionItemProvider {
this.statusbar = statusbar;
this.context = context;
}

public set paused(value: boolean) {
this._paused = value;
this.update();
Expand Down Expand Up @@ -65,7 +65,7 @@ export class PromptProvider implements vscode.InlineCompletionItemProvider {
}

async provideInlineCompletionItems(document: vscode.TextDocument, position: vscode.Position, context: vscode.InlineCompletionContext, token: vscode.CancellationToken): Promise<vscode.InlineCompletionItem[] | vscode.InlineCompletionList | undefined | null> {
if (!await this.delayCompletion(config.inference.delay, token)) {
if (context.triggerKind !== vscode.InlineCompletionTriggerKind.Invoke && !await this.delayCompletion(config.inference.delay, token)) {
return;
}

Expand Down