mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
if showing live templates in completion, show them in explicit one as well
This commit is contained in:
+2
-2
@@ -41,8 +41,6 @@ public class LiveTemplateCompletionContributor extends CompletionContributor {
|
||||
protected void addCompletions(@NotNull CompletionParameters parameters,
|
||||
ProcessingContext context,
|
||||
@NotNull CompletionResultSet result) {
|
||||
if (parameters.getInvocationCount() > 0) return; //only in autopopups for now
|
||||
|
||||
final PsiFile file = parameters.getPosition().getContainingFile();
|
||||
final int offset = parameters.getOffset();
|
||||
if (Registry.is("show.live.templates.in.completion")) {
|
||||
@@ -52,6 +50,8 @@ public class LiveTemplateCompletionContributor extends CompletionContributor {
|
||||
return;
|
||||
}
|
||||
|
||||
if (parameters.getInvocationCount() > 0) return; //only in autopopups for now
|
||||
|
||||
final String prefix = result.getPrefixMatcher().getPrefix();
|
||||
final TemplateImpl template = findApplicableTemplate(file, offset, prefix);
|
||||
if (template != null) {
|
||||
|
||||
Reference in New Issue
Block a user