fabiospampinato / vscode-todo-plus

Manage todo lists with ease. Powerful, easy to use and customizable.
MIT License
908 stars 228 forks source link

Words after two consecutive double quotes (`--`) disapper on the embedded view #363

Open solzard opened 1 year ago

solzard commented 1 year ago

This extension's embedded view erases words after two consecutive double quotes (--) of every comment.

These two comment lines on a python file ↓ comment

Appear as the below on the embedded view ↓

embedded view

Which config do I need to change to stop the view truncating words after --?


Environment: VSCode:

Extension: v4.18.4

fabiospampinato commented 1 year ago

I think perhaps because the extension thinks that's the start of a comment.

The setting to change should be this one:

  "todo.embedded.regex": "(?:<!-- *)?(?:#|// @|//|/\\*+|<!--|--|\\* @|\\{!|\\{\\{!--|\\{\\{!) *(TODO|FIXME|FIX|BUG|UGLY|HACK|NOTE|IDEA|REVIEW|DEBUG|OPTIMIZE)(?:\\s*\\([^)]+\\))?:?(?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|--|\\{!|\\{\\{!--|\\{\\{!))|((?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|\\{!|\\{\\{!--|\\{\\{!))|(?: +[^@\\n]+)?))", // Regex used for finding embedded todos, requires double escaping

Maybe you can just replace |--| with | 🤔

solzard commented 1 year ago

I replaced both of |--| with | and reload the VSCode, but unfortunately, it didn't work.

"todo.embedded.regex": "(?:<!-- *)?(?:#|// @|//|/\\*+|<!--|\\* @|\\{!|\\{\\{!--|\\{\\{!) *(TODO|FIXME|FIX|BUG|UGLY|HACK|NOTE|IDEA|REVIEW|DEBUG|OPTIMIZE)(?:\\s*\\([^)]+\\))?:?(?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|\\{!|\\{\\{!--|\\{\\{!))|((?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|\\{!|\\{\\{!--|\\{\\{!))|(?: +[^@\\n]+)?))"
fabiospampinato commented 1 year ago

Maybe it was another regex, can you try with: "todo.embedded.providers.ag.regex" and "todo.embedded.providers.rg.regex"? Same edit