You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if I'm missing something, but this doesnt seem to work for me (i.e. I can't turn off the linter). I also could not find in the source code where the option r.lsp.diagnostics is handled. Any tips?
Activity
renkun-ken commentedon Sep 10, 2022
To disable linting, turn off
r.lsp.diagnosticsin vscode settings.kongdd commentedon Sep 10, 2022
Sorry. It works.
Thank u.
ManuelHentschel commentedon Sep 10, 2022
Not sure if I'm missing something, but this doesnt seem to work for me (i.e. I can't turn off the linter). I also could not find in the source code where the option
r.lsp.diagnosticsis handled. Any tips?Edit: Found the line
vscode-R/src/languageService.ts
Line 129 in 708004a
but that argument seems to be deprecated.
renkun-ken commentedon Sep 10, 2022
lintr is called on languageserver side at
https://github.com/REditorSupport/languageserver/blob/f15957538d2ef82f4a5905e1a8b493dca2cc8deb/R/languageserver.R#L106-L115
ManuelHentschel commentedon Sep 10, 2022
Ok, but how does the value of
r.lsp.diagnosticsget intorun_lintr && lsp_settings$get("diagnostics")?renkun-ken commentedon Sep 10, 2022
The language server configuration
vscode-R/src/languageService.ts
Line 129 in 708004a
still works at the moment and it sends
r.lsp.*to language server on startup.Then on language server side, it is handled by
https://github.com/REditorSupport/languageserver/blob/f15957538d2ef82f4a5905e1a8b493dca2cc8deb/R/handlers-workspace.R#L19
and https://github.com/REditorSupport/languageserver/blob/master/R/settings.R defines how settings are handled.