Improving your Elm experience since 2019
Supports elm 0.19 and up
npm install -g elm-test elm-formatin a terminal
This extension contributes the following settings:
elmLS.trace.server: Enable/disable trace logging of client and server communication
elmLS.elmPath: The path to your elm executable.
elmLS.elmFormatPath: The path to your elm-format executable.
elmLS.elmTestPath: The path to your elm-test executable.
elmLS.disableElmLSDiagnostics: Disable linting diagnostics from the language server.
elmLS.skipInstallPackageConfirmation: Skip confirmation for the Install Package code action.
Create an elm-tooling.json file next to your
elm.jsonto configure your project.
Currently there’s just one thing that you can configure: entrypoints. We run
elm maketo get errors. Without this
elm makeis run on the current file only. To get errors for the entire project you can specify your entrypoint files – basically, those with
main =in them. Then the language server will run
elm makeon those instead.
Example:
{ "entrypoints": ["./src/Main.elm"] }
The entrypoints are relative to the directory where your
elm.jsonand
elm-tooling.jsonis and must start with
./.
Check out the elm-tooling CLI for creating and validating your
elm-tooling.json!
How to get a logfile?
F1-> Type
Output: Focus on Output View-> In the now open panel, use the drop down on the right to choose
Elm (your project name)
Most features don't seem to work for me?
elm.json. You can easily initialize your project with
elm init. If it still does work, please try if you get the same behavior with the elm-spa-example.
What's the relation to the language server?
Why do I need to install
elm,
elm-testand
elm-format?
elmand
elm-testto get all diagnostics and
elm-formatfor formatting. If your setup fails to find the global installations of those, you can use the settings panel in VSCode to set the paths to the executable manually. Alternatively you can also just install these to your local npm
package.json.
I don't like the inserted lines for "X references" (CodeLenses)
I'm using glsl and the extension is not helpful
git clone --recursive [email protected]:elm-tooling/elm-language-client-vscode.git cd elm-language-client-vscode npm install
Open VSCode with this project (
code .) and press
F5to start debugging the plugin.