mirror of
https://github.com/jlengrand/elm-language-client-vscode.git
synced 2026-03-10 08:11:17 +00:00
2a82d2aaa930a5dffcf40c626b62e0ca5834cf92
Elm Plugin for Visual Studio Code (VSCode)
Supports elm 0.19
Install
- Install VSCode from here
- Follow this link to install the plugin
- Make sure you have nodejs and therefor npm installed from here
- Install elm-test and elm-format by running
npm install -g elm-test elm-formatfrom the terminal or commandline
Highlighted Features
- Errors and helpful tips will be shown whenever you save a file (Control + S)
- Format on save (Control + S)
- Suggests completions and snippets (Control + Space)
Additional Features
- Lists all references to a type alias, module, custom type or function (Alt + Shift + F12)
- Jump to the definition of a type alias, module, custom type or function
- Shows type annotations and documentation on hover for type alia, module, custom type or function
- Rename a type alias, module, custom type or function (F2)
- Browse file by symbols (Control + Shift + O)
- Browse workspace by symbols (Control + Shift + R)
- Codelenses show how many times you calling a function and if it's exposed or not
- Code folding
Extension Settings
This extension contributes the following settings:
elmLS.trace.server: Enable/disable trace logging of client and server communicationelmLS.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.elmAnalyseTrigger: When do you want the extension to run elm-analyse? Might need a restart to take effect.
FAQ
-
What's the relation to the language server?
- This vscode extension is including the elm-language-server which enables most of the used features.
-
Why do I need to install
elm,elm-testandelm-format?- You will need to install
elmandelm-testto get all diagnostics andelm-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 npmpackage.json.
- You will need to install
-
Can I use an
elm-analyseconfig?- Yes, you can, please check here for more details.
Contributing / Debugging
git clone --recursive git@github.com:elm-tooling/elm-language-client-vscode.git
cd elm-language-client-vscode
npm install
Open VSCode with this project (code .) and press F5 to start debugging the plugin.
Languages
TypeScript
98.7%
Shell
1.3%