mikaeljorhult / brackets-todo

Brackets/Edge Code extension that displays all TODO comments in current document or project.
144 stars 37 forks source link

optimize searching #59

Closed zaggino closed 10 years ago

zaggino commented 10 years ago

instead of documentSaved event you could use:

FileSystem.on("change", function (evt, file) {
    ...
});

this event fires on every file change, doesn't matter if the change came from documentSaved event or an external source which was detected by watching the files

mikaeljorhult commented 10 years ago

That sounds a lot better. Will have to try it out. Thanks!

mikaeljorhult commented 10 years ago

Started using this and it's a lot cleaner than before. Thank you @zaggino!

zaggino commented 10 years ago

:+1: