fix(vscode): do not show inline completion when autocomplete widget is visible. (#414)

release-0.2
Zhiming Ma 2023-09-08 12:06:00 +08:00 committed by GitHub
parent 8955cf0f93
commit acfdba68fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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