fnando / vscode-linter

Extension for code linting, all in one package. New linters can be easily added through an extension framework.
https://marketplace.visualstudio.com/items?itemName=fnando.linter
MIT License
62 stars 16 forks source link

fix: Fix not finding linter in Windows without ext #18

Closed ishowta closed 1 year ago

ishowta commented 1 year ago

fix #17

consider PATHEXT env var from Windows

referred to https://github.com/otiai10/lookpath/blob/c18d826b37a64fc6839471226c13058697747c06/src/index.ts#L33

tileh commented 1 year ago

This would help me as well! The current state makes it very hard to work the yaml linter, because you need to add the .exe in the settings.json first. This leads to confusion (especially for new users), which will be fixed with this PR :)

fnando commented 1 year ago

Thanks for this pull request. I added something similar via 75d2fdd0a50611a173597d6ecc024751004562a3.