mint-lang / mint

:leaves: A refreshing programming language for the front-end web.
https://mint-lang.com
BSD 3-Clause "New" or "Revised" License
4.06k stars 141 forks source link

[LSP] Missing language keywords completions #512

Open siduck opened 2 years ago

siduck commented 2 years ago

Hi! I dont see completions like mainPath,render, component , fun etc and other basic stuffs. These are basic variables and it would be helpful to add them in the lsp.

image

gdotdesign commented 2 years ago

Let's make this as a meta issue for missing completions. I would like to get the requests in this format:

Here is an example:

siduck commented 2 years ago

I've seen many completitions missing , Basic things which were mentioned in the mint guide like control expressions , functions, modules etc.

For example :

image

Where as tsserver doesnt provide snippets but it does provide text based completion, for example if there's a 'for' item in the completion menu then tab completing it will result in for.

image

( note : I just mean the completion of those above as texts only , not as in snippets . like typing 'swi' must get the completion menu show up 'switch' keyword completion and if i select it , it'll complete swi -> switch )

a LSP server must provide lsp completions for all the syntax being used in the language