Skip to content

Add setting for disabling auto-imports #450

@pontusgranstrom

Description

@pontusgranstrom

I propose adding a setting for turning off the feature that looks up symbols across the files in a project and automatically imports them unqualified.

Expected Behavior

A setting in the server, and in any plugins, for enabling/disabling auto-imports.

Current Behavior

There are no settings for auto-imports.

Context

When there are multiple Elm files containing similar symbols, auto-imports happen accidentally (at least in visual studio code). This can hurt more than it helps, and has resulted in

  • me checking in import lines unintentionally
  • errors when unqualified imports clash

I like to be intentional about my imports, so if there was a setting for turning auto-imports off, I would use it.

The auto-imports would be more helpful to me

  • if triggered with confirmation rather than on auto-complete, but that might be outside the control of a plugin/extension.
  • if they imported symbols qualified (I am under the impression that this is considered good Elm style).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions