mattiaspernhult / vscode-todo Goto Github PK
View Code? Open in Web Editor NEWLists TODO:s in the project
License: Other
Lists TODO:s in the project
License: Other
At first thanks a lot for awesome extension, but is there any way to set default language for TODOs extension it's a bit annoying to call set language any time opening the project, thanks
Inline comments with the TODO: marker are not found by the extension. Could possibly use . instead of \W at the start of the lookup in new RegExp("^\\W*(?:TODO|FIXME)\\s*\\W{0,1}(\\s+.*|(?:\\w|\\d).*)$", "i")
.
Example where not found:
var type = "Test"; //TODO: This message is not identified by plugin.
Do not show todo within vendor folder in golang project!
Syntax highlighting is a key feature this plugin needs. Handling it the same way IDEs like PhpStorm do would be awesome.
The following might be of use:
TextMate grammar injections
Extensions can now contribute TextMate grammars that inject new rules into the existing grammars used for syntax highlighting. This makes it possible to add colorization inside string literals or comments, such as highlighting of URLs or TODO markers across multiple languages."grammars": [ { "scopeName": "source.todo", "path": "./syntaxes/todo.tmLanguage", "injectTo": [ "source.js", "source.ts" ] } ]
From: https://code.visualstudio.com/Update (version 1.2.0)
By default, the plugin matches on TODO:
. is it possible to also match on TODO
(so without the colon)?
Improving the appearance of the displayed TODOS
Hi,
Great plugin to list all todo's. Is it possible to get the list of TODO's in a separate text file so e.g, they can easily be saved?
It would be really handy if you could implement a feature to also show the number of TODOs on the corresponding button on the status bar. That could be a nice reminder about something not finished within the project.
no configuration in package.json.
easy fix by updating the package.json:
"contributes": { "configuration": { "type": "object", "title": "TODO's configuration", "properties": { "todoIgnore": { "type": "array", "default": null, "description": "Exclude files from search" }, "todoScanRegex": { "type": ["string"], "default": null, "description": "Scan expression regex" } } } }
Thank you :)
loved the extension.
Minor issue:
The readme states:
git clone https://github.com/MattiasPernhut/vscode-todo
but should be:
git clone https://github.com/MattiasPernhult/vscode-todo
cheers
If this project is deprecated, could you please archive the project in the settings here on github? The code will still be there, all the files will still be there, but pull requests become impossible, and issues (the option for them) get turned off, as is befit a project that will never receive any updates anymore.
Match TODO identifiers in comments such as:
Hi, can anybody tell me if it is possible to extend the list of supported languages? I would like to add Powershell, which prefixes commented out lines with a # or uses <# ... #> for a block comment. I made an attempt to extend the content in the language.js file, however after I had done that I Rx'd the
Error Message: command 'extension.chooseLanguageTodo' not found
Afterwhich I had to uninstall to resolve the problem.
Nevertheless, I would appreciate applying this app when scripting.
Thanx,
Porky
----- Ignore, apologies -----
Hello!
First of all thank you for this great extension! ๐ ๐
Usually it is working great, but recently it stopped working after adding woff2-files, which are binary files.
The reason is in helper.js in function findTodosinFiles
when calling Workspace.openTextDocument
. For binary files the promise is called with an undefined object.
I solved it by adding an if-statement in the promise:
var findTodosinFiles = function(files, choosenLanguage, scanRegex, done)ย {
...
if (files.length === 0) {
...
} else {
for (var i = 0; i < files.length; i++) {
Workspace.openTextDocument(files[i]).then(function(file) {
if (file) { // <-- line added
findTodosinSpecifiedFile(file, todos, todosList, scanRegex);
} // <-- line added
see helper.js line 93.
Of course, someone can add binary file extensions to "todoIgnore" in the user settings like so:
"todoIgnore": ["node_modules/**", ... , "**/*.woff2"]
I kindly ask you to fix it. ๐ ๐
Best regards,
Harald
While scrolling through results (up/down arrow) would be useful for it to open the corresponding file and scroll to line so that the user can get more contextual information.
I'm using this with my typescript project and it hangs every time I try to list all TODOs. This may or may not be because of the latest update to v0.10.8 since I did not try this extension before 0.10.8.
Thanks in advance ๐
I see the following error on Dev Tools:
[Extension Host] TypeError: Cannot read property 'uri' of undefined
at findTodosinSpecifiedFile (/Users/gmaggessy/.vscode/extensions/MattiasPernhult.vscode-todo-0.8.0/helper.js:62:25)
at /Users/gmaggessy/.vscode/extensions/MattiasPernhult.vscode-todo-0.8.0/helper.js:94:17
at Object.m [as _notify] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:5:9648)
at Object.j.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:5:13226)
at n.Class.define._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:5:15054)
at n.Class.define._completed (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:5:14495)
at e.resolveOk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:8:11955)
at p (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:8:10437)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
I'm using vscode 1.4.0.
Has anyone experienced some similar?
I have cloned the sample MusicStore application (https://github.com/aspnet/MusicStore)
I set the language to C# and then list todos and it shows me all the todos
I then add the user setting:
"todoIgnore": ["**/test/**"]
When I list the todos again, it still lists all the todos from the /test/ folder
I even tried to add the setting to the workspace settings, but that also makes no difference.
It seems that the extension is simply ignoring my setting :(
I have cloned the ASP.NET Core sample MusicStore project (https://github.com/aspnet/MusicStore)
If I try and find the todos with "TODO: List all todos" I just get the message "No entries to pick from".
When I go and I then select a language, for example C#, and try again then I will see all the C# entries. If I change the language to JavaScript, I will also see all the JS entries. As soon as I change the language to All then it gives me the message again about no entries to pick from.
I am using VS Code on Windows (if that makes any difference...)
Any idea?
I have had PR #44 open for 2 months and no response, is this still being actively updated? if not perhaps open up to new maintainers ?
When I want to choose "PHP" langue, It throw error: The choosen language "PHP" didn't match any file extensions, please create an issue.
I am getting an "unknown configuration setting" warning when i use the todoScanRegex
property in my workspace settings.json file.
ex.
{
"todoScanRegex": "(?:TODO|FIXME|HACK)\\s*\\W{0,1}(\\s+.*|(?:\\w|\\d).*)$"
}
on my nodejs project it always tells me no entries to pick
Running VSCode 0.10.8 (Win) and vscode-todo 0.5 and still experiencing same system hang as previous version. This is occuring with project folder open and in a javascript file.
If I open a single file vsode the find todos does not hang but no activity occurs (cursor stays in the same place).
Extension doesn't work for coffeescript files
I have a Rust project, searching for TODO's get's me the following message:
`[Info] There is no All files in the open project.`
There are plenty of TODO's around the code...
Note:: It might be related, the Rust language is not showing up on the Set language
dropdown either.
Take the "search.exclude" setting into account when scanning for TODOs. Maybe do this by default, if "todoIgnore" is not specified.
Ubuntu Gnome 17.04
Visual Studio Code 1.11.2
Seems like right now it's looking for files in all directories which make vscode slow and bring some TODOs from packages. it would be nice if we could choose one or more specific path to watching or ignore packages directories.
The extension doesn't work for the file extension .js.coffee
http://elm-lang.org/ - files are suffixed with .elm
Auto-detection for language would be cool. Selecting language every time is not pleasant.
When clicking on the specific TODO, the file with it is appearing, but I think that it should also scroll to the specific line with the TODO. Now the line is only marked.
There is no TypeScript React on the languages list, so I can't find TODO's in my .tsx
files.
Thread.Sleep(500); //TODO: Proper detection if screensaver still open.
wasn't recognized by the addon, but
Thread.Sleep(500);
//TODO: Proper detection if screensaver still open.
worked
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.