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

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

Open
andys8 opened this issue Nov 20, 2018 · 0 comments
Open

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

andys8 opened this issue Nov 20, 2018 · 0 comments

Comments

@andys8
Copy link
Member

andys8 commented Nov 20, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant