davraamides / todotxt-mode

MIT License
59 stars 12 forks source link

Syntax highlighting missing for other files #24

Closed metbril closed 3 years ago

metbril commented 3 years ago

The only file that gets highlighted is todo.txt itself. Any other file (done, someday) is just plain text.

Workspace setting:

{
    "todotxtmode.excludeDecorationsFilePattern": "",
    "todotxtmode.todoFilePattern": "^.*\\.txt$"
}
davraamides commented 3 years ago

Hi Robert,

I think the excludeDecorationsFilePattern is matching anything (it's a regex). Try changing it to "^$" which will only match the empty string (i.e. won't match any file name). You may need to restart VSC for the effect to take place.

-David

On Thu, Jan 28, 2021 at 4:07 AM Robert notifications@github.com wrote:

The only file that gets highlighted is todo.txt itself. Any other file (done, someday) is just plain text.

Workspace setting:

{ "todotxtmode.excludeDecorationsFilePattern": "", "todotxtmode.todoFilePattern": "^.*\.txt$" }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davraamides/todotxt-mode/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOOZGPGJJTCJV7L6HJRX7TS4ESM7ANCNFSM4WWVPSEA .

metbril commented 3 years ago

Hi. I changed the regex to your suggestion "^$" and restarted VSC. That did the trick. Thanks.