jaredramirez / elm-language-server Goto Github PK
View Code? Open in Web Editor NEWLanguage Server for Elm
License: BSD 3-Clause "New" or "Revised" License
Language Server for Elm
License: BSD 3-Clause "New" or "Revised" License
We should be able to get type information given a canonical AST and a line and column number.
We can do this straightforwardly by doing the following:
This method is limiting, as it only provides the type lookup for top level functions and arguments. The biggest limitation I can see with this is the desire to get type information of a variable declared in a let
block or an anonymous function. This lead us to the following.
Alternatively, we could solve this by:
However, after digging into type constraints and the type solver, I don't see a straightforward way to get such a structure without modifying the type solver which I am reluctant to do. My concern is that this will be much easier to maintain without doing such a modification, but I also think that there is likely no way around such a thing. As a result, I will first implement the straightforward approach and move on. Then circle back to this once other basic language server features are completed.
When creating a new elm file, the server crashes on startup. I think this has to do with the fact that the file is empty, but this is unconfirmed.
We should be able to get the original place a variable was defined given a canonical AST and a line and column number.
To do this, we should be able to do the following:
This language server should be able to respond with diagnostics from elm analyse of a specific file.
For this we'd need the following:
Thanks so much for this project @jaredramirez! I'd love to see some sort of documentation outlining installation procedures and possibly even config snippets for inclusion/usage within neovim/vim.
I'd be happy to help test (i use neovim for everything)
This language server should be able to format the source-code of a specific file.
For this we'd need the following:
capabilities
section of the initialization spec)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.