From f0fdfa517f30ddc0142a2d75232e6e6b2250d335 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Apr 2018 15:46:51 +0200 Subject: [PATCH] Make it possible to customize default TODO patterns --- .../src/com/intellij/ide/todo/TodoConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/editor-ui-ex/src/com/intellij/ide/todo/TodoConfiguration.java b/platform/editor-ui-ex/src/com/intellij/ide/todo/TodoConfiguration.java index 4218fe0601c6..dd84905cd542 100644 --- a/platform/editor-ui-ex/src/com/intellij/ide/todo/TodoConfiguration.java +++ b/platform/editor-ui-ex/src/com/intellij/ide/todo/TodoConfiguration.java @@ -64,8 +64,11 @@ public class TodoConfiguration implements PersistentStateComponent { buildIndexPatterns(); } + /** + * Returns the list of default TO_DO patterns. Can be customized in other IDEs (and is customized in Rider). + */ @NotNull - private static TodoPattern[] getDefaultPatterns() { + protected TodoPattern[] getDefaultPatterns() { //noinspection SpellCheckingInspection return new TodoPattern[]{ new TodoPattern("\\btodo\\b.*", TodoAttributesUtil.createDefault(), false),