tamayika / vscode-any-lint

VSCode Any Lint allows you to lint any files with any command line tools
Other
4 stars 2 forks source link

"on":["change"] is unusable #1

Closed safinaskar closed 3 years ago

safinaskar commented 3 years ago

Hi. "on":["change"] is unusable. I pass file name to linter using "args":["${file}"]. Thus linter gets file name and thus linter will read file from disk. So, linter gets saved copy! Not modified copy from buffer

tamayika commented 3 years ago

Thanks for reporting the issue! I have fixed it by passing current buffer by STDIN at #2 and released 0.1.0. If your linter does not support stdin mode, it is difficult to use on text changed. Please refer the example here.

safinaskar commented 3 years ago

@tamayika , I tested, it works