Skip to content

Feature request: Disable diagnostics #666

Open
@m1dnight

Description

@m1dnight

Environment

  • Elixir & Erlang versions (elixir --version):
  • Elixir Language Server version:
  • Operating system:
  • Editor or IDE name (e.g. Emacs/VSCode):
  • Editor Plugin/LSP Client name and version:

Current behavior

The plugin underlines warnings that you usually get from the compiler, such as the following.

variable "stream" is unused (if the variable is not meant to be used, prefix it with an underscore)

I have a codebase that has a lot of these warnings, and it's supper annoying to try and program in a codebase that's full of these lines.

Expected behavior

Is it possible to add an option to disable these squiggly lines? Other language extensions seem to have that option: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b4278905-b34a-4396-945d-d7d661a29b21/how-to-hide-warning-scribblies-in-vs-code

Thanks for the plugin and all the hard work!

Activity

lukaszsamson

lukaszsamson commented on Jan 27, 2022

@lukaszsamson
Collaborator

@m1dnight those warnings come from elixir compiler itself. For now disabling warnings is not supported both in elixir and in elixirLS. We could always accept a PR adding it.

m1dnight

m1dnight commented on Jan 27, 2022

@m1dnight
Author

But, the information is sent by the language server, correct? I am swamped the next month, but I sure want to give this a shot if I can.

lukaszsamson

lukaszsamson commented on Jan 27, 2022

@lukaszsamson
Collaborator

Yes, language server transforms warnings from the compiler and dialyzer and sends them via publishDiagnostic protocol message.

changed the title [-]Disable warning squiggly lines[/-] [+]Feature request: Disable diagnostics[/+] on Oct 6, 2022
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lukaszsamson@m1dnight

        Issue actions

          Feature request: Disable diagnostics · Issue #666 · elixir-lsp/elixir-ls