Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Feature: Code Action should use elm proposal for replacement #12

@andys8

Description

@andys8

Elm compiler error messages have proposals how to replace e.g. a typo.

Module build failed: Error: Compiler process exited with error Compilation failed
-- NAMING ERROR - path/Main.elm

Cannot find variable `flag`

53|             flag |> Env.config |> initialModel
                ^^^^
Maybe you want one of the following?

    flags
    flip
    Basics.flip
    Debug.log

Detected errors in 1 module.

This information can be used to give code actions: https://microsoft.github.io/language-server-protocol/specification#textDocument_codeAction

This is currently worked on in: https://github.com/elm-tooling/elm-language-server/tree/code-action

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions