Skip to content

disable Linting and remove inline warnings #1191

Closed

Description

@kongdd

I want to remove those inline warnings in vscode-R.
Any solution?
image

Activity

  1. renkun-ken commented on Sep 10, 2022

    @renkun-ken
    Member

    To disable linting, turn off r.lsp.diagnostics in vscode settings.

  2. kongdd commented on Sep 10, 2022

    @kongdd
    Author

    Sorry. It works.
    Thank u.

  3. ManuelHentschel commented on Sep 10, 2022

    @ManuelHentschel
    Member

    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?

    Edit: Found the line

    configurationSection: 'r.lsp',

    but that argument seems to be deprecated.

  4. ManuelHentschel commented on Sep 10, 2022

    @ManuelHentschel
    Member

    Ok, but how does the value of r.lsp.diagnostics get into run_lintr && lsp_settings$get("diagnostics")?

  5. renkun-ken commented on Sep 10, 2022

    @renkun-ken
    Member

    The language server configuration

    configurationSection: 'r.lsp',

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions