visible/slow line markers merged with line markers pass; instead of VisibleLineMarkersPass and SlowLineMarkerPass the LineMarkersPass now accepts priorityRange and restrictRange, just like GeneralHighlightingPass

This commit is contained in:
Alexey Kudravtsev
2016-08-08 14:59:23 +03:00
parent c93c87c937
commit 32c33fbbaf
31 changed files with 236 additions and 435 deletions

View File

@@ -60,7 +60,7 @@ public class PyExecuteFileLineMarkerProvider implements LineMarkerProvider {
Icon icon = PlatformUtils.isPyCharmEducational() ? AllIcons.Actions.Execute : actions.get(0).getTemplatePresentation().getIcon();
final LineMarkerInfo<PsiElement> markerInfo = new LineMarkerInfo<PsiElement>(
file, file.getTextRange(), icon, Pass.UPDATE_OVERRIDDEN_MARKERS,
file, file.getTextRange(), icon, Pass.LINE_MARKERS,
e -> {
String text = "Execute '" + e.getContainingFile().getName() + "'";
return PlatformUtils.isPyCharmEducational() ? text : actions.get(0).getTemplatePresentation().getText();