sublimelsp / LSP-typescript

TypeScript, JavaScript support for Sublime LSP plugin
MIT License
135 stars 11 forks source link

Only close the `hint` and `show_code_actions` of the `lsp-typescript` package #114

Closed thep0y closed 2 years ago

thep0y commented 2 years ago

I am using lsp-eslint and lsp-typescript, these two packages will generate the same hint and code_actions for the code.

image

I just want to keep the hint and code_actions of lsp-eslint. What should I do?

rchl commented 2 years ago

There is a diagnostics.ignoredCodes setting in LSP-typescript. You can ignore specific codes with it (in this case 6133).

thep0y commented 2 years ago

There is a diagnostics.ignoredCodes setting in LSP-typescript. You can ignore specific codes with it (in this case 6133).

{
    "settings": {
        "diagnostics.ignoredCodes": [
            6133
        ],
    }
}

Now it is working as I expected, thank you.