-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show tsserver hints/suggestions in Ale. #3362
Conversation
The documentation says:
and
tsserver hints/suggestions are infos. Is it a bug that the loclist is populated with them? Personally, I don't like it. VSCode and IDEA don't populate "Problems" with hints either: |
Is it possible to make a setting for that? coc.vim and vscode has |
Interestingly info is expected in loclist, e.g. ALENext has
So question is what setting is for? So you can use |
I'm not using
To turn off tsserver hints. P.S. I'm just a user of ALE. Possible that my opinion is wrong |
I'm only user as well 😄. One idea: |
Nevermind. I've started to use |
This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See |
@w0rp any comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost good. Just make sure that the items use the type 'I'
for "info", and that we have a setting to ignore suggestions. I think it's worth turning them on by default, so people are aware they exist, and letting people turn suggestions off with one setting. Let's call this setting ale_lsp_suggestions
, set it to 1
by default, and document that setting it to 0
will disable suggestions for tsserver
and from LSP servers.
We could add ale_minimum_severity
at some point for everything, but I think it's worth being able to control specifically suggestions from tsserver
and LSP servers as a separate setting.
Sorry, I will not be able to fix it completely as I don't see using tsserver with Ale myself in the future. |
Update: Items use type 'I' for suggestions. It is set in
I'm working on setting now. |
@w0rp please review again |
@w0rp please merge this one as well. I personally find it useful. |
This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See |
@w0rp 😉 |
This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patience. This looks good to me.
🍻 |
Finally found this issue, this change confuse me. Usually I get same result from command After this change, when I run
This message is look like it lint by After reading above comments, set |
I think you won't be alone in finding that confusing. I'll turn them off by default. |
No description provided.