vscode-todo-highlight
vscode-todo-highlight copied to clipboard
exclude doesn't exclude settings.json
todohighlight.exclude option doesn't seem to recognize settings.json. Screenshot shows what I mean. I don't want the highlight text highlighted in the settings file, just the raw text.
It works for me however you need to click out of the file and back in for the highlighting to be removed.
Thanks, @ascheel for the report. It's also failing for me. So @GBR6000 interesting that it works for you. How many items are in your "todohighlight.exclude" array?
"todohighlight.keywords": [ { "text": "\NewDocumentCommand", "color": "#569CD6", "backgroundColor": "transparent" }, { "text": "\...cite ", "regex": { "pattern": "(?<!(%.+))\\(\w+)?cite(?!\w)" }, "color": "#C586C0", "backgroundColor": "transparent", } ], "todohighlight.include": [ "/*.tex", "/*.json" ], "todohighlight.exclude": [ "**/settings.json" ],
Thanks, @GBR6000. As I thought: the first exclude setting works, but the others are currently ignored. I think this bug has been there since I forked it years ago, and we've only just noticed!