elixir_sense icon indicating copy to clipboard operation
elixir_sense copied to clipboard

Unnecessary suggestions inside heredoc

Open lukaszsamson opened this issue 5 years ago • 1 comments

The following test is failing

  test "no completion inside docstring" do
    buffer = """
    defmodule MyModule do
      @moduledoc \"\"\"
      This is a module asd.
      \"\"\"
    end
    """

    assert [] == ElixirSense.suggestions(buffer, 3, 24)
  end

Suggestions are not aware that this is heredoc and are providing results for asd. subject.

lukaszsamson avatar Feb 15 '20 19:02 lukaszsamson

I'm somewhat inclined to leave this as-is because sometimes suggestions within a moduledoc are helpful, especially when you're referencing a module that exists in the project. Although it can also be annoying at times since most of the suggestions will be incorrect.

axelson avatar Feb 15 '20 20:02 axelson