intellij-elixir icon indicating copy to clipboard operation
intellij-elixir copied to clipboard

Local function is not suggested in `if` do block.

Open odk211 opened this issue 1 year ago • 0 comments

Describe the bug Function without module is not suggested in if do block. I'm not sure since when this issue happened.

To Reproduce

  1. Write like
defmodule Foo do

  def foo do
    if true do
    end
  end

  def bar do
    "bar"
  end
end
  1. Write b in if do block
  2. No suggestion.
  • Write Foo.b suggest bar
  • Write b outside if block suggest bar

Expected behavior Suggest bar function name.

Screenshots

https://user-images.githubusercontent.com/1321120/180217005-e21f15e3-aca2-4e69-9481-689ea36e9fa3.mov

Desktop:

  • OS: Mac OS X
  • Version 11.6.6

Erlang:

  • Installer asdf
  • Version 25.0.1

Elixir:

  • Installer asdf
  • Version 1.13.4-otp-25

Plugin:

  • Version 13.1.1

odk211 avatar Jul 21 '22 13:07 odk211