sublime-ide-r icon indicating copy to clipboard operation
sublime-ide-r copied to clipboard

[Feature Request] Option for toggling the `lintr` on and off

Open amirmasoudabdol opened this issue 6 years ago • 12 comments

I'm wondering if it's feasible to add an option to toggle lintr on and off. I understand that this is possible through setting specific options but it'd be nice to just have a toggle button, maybe even making accessible in the Command Pallate.

amirmasoudabdol avatar Sep 25 '18 19:09 amirmasoudabdol

Check the setting diagnostics.

randy3k avatar Sep 25 '18 20:09 randy3k

Oh. Didn’t read your post carefully. However, I am afraid that it is not possible to make it togglable. A restart is always needed.

randy3k avatar Sep 25 '18 20:09 randy3k

I'd say that's fine. There are options on other packages, even on Sublime that states the necessary restart. It's already good if there is an option to toggle it on/off.

amirmasoudabdol avatar Sep 25 '18 20:09 amirmasoudabdol

Seems the diagnostics only hides the bottom pane - but does not turn off/on the lint hints in the files. Is it possible to still have tab completion for functions/etc. but not linting advice?

sckott avatar Oct 30 '18 21:10 sckott

It should stop the entire linting feature. Try restarting the sublime

randy3k avatar Oct 30 '18 21:10 randy3k

thanks, i think that works

sckott avatar Oct 31 '18 16:10 sckott

Check the setting diagnostics.

Could you please elaborate on this? I tried "diagnostics": false in my R-IDE.sublime-settings to turn off linting, but it does not seem to have an effect (not even after a restart).

divenyijanos avatar Apr 08 '19 12:04 divenyijanos

Are u using the latest version of languageserver? There is a bug in the previous version preventing the settings to pass over to the server.

randy3k avatar Apr 08 '19 12:04 randy3k

oh, thanks, I used 0.2.6, installing the latest version solved the issue

divenyijanos avatar Apr 08 '19 14:04 divenyijanos

Setting "diagnostics": false only disables linting or some other features too?

divenyijanos avatar Apr 08 '19 14:04 divenyijanos

It only disables linting.

randy3k avatar Apr 08 '19 15:04 randy3k

Apologies replying to an old issue. But the above "diagnostics": false trick does not seem to be able to turn off lint for ST4. I'm using the latest build 4169 and latest version of languageserver. Many thanks!

richardli avatar Mar 28 '24 16:03 richardli