WEB-9986 CSS: fuzzy search shows turned off abbreviations

This commit is contained in:
Alexander Zolotov
2013-11-21 15:00:26 +04:00
parent e879da59a3
commit 56e038568a
@@ -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;
}