elm-tooling / elm-language-server-haskell

Elm language server written in haskell (archived). Use https://github.com/elm-tooling/elm-language-server instead.
BSD 3-Clause "New" or "Revised" License
52 stars 5 forks source link

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

Open andys8 opened 5 years ago

andys8 commented 5 years ago

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