vscode-todo-parser icon indicating copy to clipboard operation
vscode-todo-parser copied to clipboard

not working for text files

Open Waog opened this issue 7 years ago • 1 comments

Hi,

vscode-todo-parser doesn't add TODOs in simple text files (e.g. .txt or .graphql).

This would be a desirable default, since otherwise arbitrary TODOs in the project get lost, since they don't appear in the List. As a developer I don't want to memorize the list of supported file types and remember them each time I write a TODO into my files.

Waog avatar Apr 11 '18 10:04 Waog

According to https://github.com/kantlove/vscode-todo-parser/blob/master/src/types/LanguageType.ts this plugin uses the Java Regex for plain text, which is defined at https://github.com/kantlove/vscode-todo-parser/blob/master/src/const/RegexStrings.ts as /*+([\s\S]*?)*/|//([^\r\n]+) so it should work when using a double slash (can't get it to work) or the /* */ notation, but I think there's a . missing in the first part of the regex... so I don't see how this should be possible to match...

GitMensch avatar Jul 02 '18 12:07 GitMensch