linter
linter copied to clipboard
Support disabling Indie Linters
I'm using linter 2.2.0, linter-ui-default 1.7.1 and ide-typescript 0.8.0.
When the ide-typescript package is enabled, the Linter pane has servals errors or infos provided by a provider called typescript
.
Then, in the linter settings, when I add typescript
in the "Disabled providers" field, nothing happens. The proviter is not disabled.
Hi @smariel
Try using the Linter: Disable Linter
from the command palette, it does the same job except in a convenient way. As for why it wasn't working when you manually typed it in, it's because the names are case-sensitive.
Lmk if you disable it through the UI and still doesn't work
That is interesting: using the command palette, the "typescript" linter, which is integrated to the typescript IDE package, does not appear. I removed any disabled providers from the UI to be sure.
Thank you for the extra info, will debug
Apparently IDE-X packages use the Linter "Indie" API. Linter does not support disabling them. but it should, thank you for reporting
I don't know if you would consider this a separate issue, but I'm using the handy linter-coverage
package, but I only care to have it show in the gutter, not polluting other linting errors in the bottom panel (ideally with the ability to easily toggle to disable the gutter items too). (There were other packages which did the gutter only, but don't seem to be working anymore or are archived repositories.) Could you support partial disabling, e.g., of just the panel display for a given linter? Thanks...