bryphe / oni-plugin-tslint

TSLint plugin for Oni
MIT License
4 stars 3 forks source link

Why does the plugin lint all files in the project? #3

Open LucianBuzzo opened 6 years ago

LucianBuzzo commented 6 years ago

Looking at the source code I see

Oni.editors.activeEditor.onBufferEnter.subscribe((buf) => doLintForProject(buf, false)

Which causes the entire project to be linted on buffer entry. This means that if I switch away from my editor window and then come back to it, it kicks off the whole linter process again. Is there a reason for this? It seems very resource intensive.

wesselvdv commented 6 years ago

@LucianBuzzo My guess is that if you're using tslint for type checking this would be the way to go. Take a look at my pull request for a version where this is disabled.