Open solzard opened 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 |
🤔
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]+)?))"
Maybe it was another regex, can you try with: "todo.embedded.providers.ag.regex" and "todo.embedded.providers.rg.regex"? Same edit
This extension's embedded view erases words after two consecutive double quotes (
--
) of every comment.These two comment lines on a python file ↓
Appear as the below on the embedded view ↓
Which config do I need to change to stop the view truncating words after
--
?Environment: VSCode:
Extension: v4.18.4