diff --git a/src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt b/src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt index d517137a..55d3f22b 100644 --- a/src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt +++ b/src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt @@ -398,19 +398,20 @@ class HbsLocalCompletion : CompletionProvider() { } if (element.containingFile.fileType is HtmlFileType) { - if (!parameters.isExtendedCompletion) return - val results = service?.getCompletionItems(element.originalVirtualFile!!, document, parameters.offset, parameters)?.get()?.map { - if (completionResultSet.prefixMatcher.prefix == "@") { - LookupElementBuilder.create("@" + it.name) - } else { - LookupElementBuilder.create(it.name) - } + if (parameters.isExtendedCompletion) { + val results = service?.getCompletionItems(element.originalVirtualFile!!, document, parameters.offset, parameters)?.get()?.map { + if (completionResultSet.prefixMatcher.prefix == "@") { + LookupElementBuilder.create("@" + it.name) + } else { + LookupElementBuilder.create(it.name) + } + } + if (results != null && results.size < 100) { + completionResultSet.addAllElements(results) + } + return } - if (results != null && results.size < 100) { - completionResultSet.addAllElements(results) - } - return } val result: MutableList = mutableListOf()