Skip to content

Can I change the lsp message type from error to hint in svelte lsp? #86

Description

@chenelias

I recently updated my LSP. After the update, when I had unused variables in my svelte file, I got an error message in my inline diagnostic, and I want to change the message type back to hint because it kind of ignores.

current unused variable message
current unused variable message
I want to set it to hint, like this
I want to set it to hint, like this.

I have already tried added these line to my svelte_lsp config, but it did't work.

          settings = {
            svelte = {
              compilerWarnings = {
                ["unused-variable"] = "hint",
              },
            },
          },

Is there any way to achieve it?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions