diff --git a/clients/vscode/src/TabbyCompletionProvider.ts b/clients/vscode/src/TabbyCompletionProvider.ts index 638eea3..5cc5c18 100644 --- a/clients/vscode/src/TabbyCompletionProvider.ts +++ b/clients/vscode/src/TabbyCompletionProvider.ts @@ -39,6 +39,12 @@ export class TabbyCompletionProvider implements InlineCompletionItemProvider { return emptyResponse; } + // Check if autocomplete widget is visible + if (context.selectedCompletionInfo !== undefined) { + console.debug("Autocomplete widget is visible, skipping."); + return emptyResponse; + } + const replaceRange = this.calculateReplaceRange(document, position); if (this.pendingCompletion) {