You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ELS suggests e.g. Import 'button' from module 'Html', if the Html module is already imported, the exposing (button) should be added to the existing import, not added as a new import Html
Expected Behavior
Given
import Html exposing (div)
foo =
button [] []
triggering a code action on button and selecting Import 'button' from module "Html" should result in
import Html exposing (div, button)
foo =
button [] []
Current Behavior
Instead we get:
import Html exposing (div)
import Html exposing (button)
Context
The resulting imports look sloppy and are hard to follow. I wind up spending as much time tiding them up as I save using the auto-import action.
Your Environment
Version used: 2.8.0
Editor used: Neovim 0.10.1
Environment name and version (e.g. node.js 5.4): node 22.5.1
Operating System and version: NixOS 24.05
The text was updated successfully, but these errors were encountered:
When ELS suggests e.g.
Import 'button' from module 'Html'
, if theHtml
module is already imported, theexposing (button)
should be added to the existing import, not added as a newimport Html
Expected Behavior
Given
triggering a code action on
button
and selectingImport 'button' from module "Html"
should result inCurrent Behavior
Instead we get:
Context
The resulting imports look sloppy and are hard to follow. I wind up spending as much time tiding them up as I save using the auto-import action.
Your Environment
The text was updated successfully, but these errors were encountered: