elm-language-server icon indicating copy to clipboard operation
elm-language-server copied to clipboard

Auto import qualified

Open jonathanmoregard opened this issue 2 years ago • 0 comments

Expected Behavior

When activating quickfix through the vscode command "editor.action.quickFix", while the cursor is hovering over a non-imported qualified import (such as Attribute.none), I want to get auto-import suggestions for qualified imports (such as "Import Element.Attribute as Attribute").

Current Behavior

No qualified import available on "quickFix"

Possible Solution

  1. Use pretty much the same logic as for unqualified imports to get the candidates for import
  2. Give options to import with the "as [...]" postfix

Context

Auto importa are nice, it would be lovely to have it for qualified imports as well

jonathanmoregard avatar Dec 04 '21 05:12 jonathanmoregard