mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 00:57:59 +07:00
WEB-9986 CSS: fuzzy search shows turned off abbreviations
This commit is contained in:
+2
-9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -96,16 +96,9 @@ public class CustomTemplateCallback {
|
||||
public List<TemplateImpl> filterApplicableCandidates(Collection<? extends TemplateImpl> candidates) {
|
||||
List<TemplateImpl> result = new ArrayList<TemplateImpl>();
|
||||
for (TemplateImpl candidate : candidates) {
|
||||
if (TemplateManagerImpl.isApplicable(myFile, myOffset, candidate)) {
|
||||
if (!candidate.isDeactivated() && TemplateManagerImpl.isApplicable(myFile, myOffset, candidate)) {
|
||||
result.add(candidate);
|
||||
}
|
||||
/*TemplateContext context = candidate.getTemplateContext();
|
||||
for (TemplateContextType contextType : contextTypes) {
|
||||
if (context.isEnabled(contextType)) {
|
||||
result.add(candidate);
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user