mint icon indicating copy to clipboard operation
mint copied to clipboard

[LSP] Missing language keywords completions

Open siduck opened this issue 3 years ago • 2 comments

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

siduck avatar Nov 12 '21 08:11 siduck

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

  • What is the completion that is missing?
  • What entity is it related to?
  • What position of the text it should show up on? (use | as the caret)
  • What should the completion look like?

Here is an example:

  • What is the completion that is missing? - Properties for HTML components.
  • What entity is it related to? - A property of a component (property mainNav : Bool = false)
  • What position of the text it should show up on? - Inside an HTML component <Navbar |></Navbar>
  • What should the completion look like?
    mainNav={${1}}
    

gdotdesign avatar Nov 17 '21 15:11 gdotdesign

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

For example :

  • Typing fo must bring up the completion for 'for' .

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

  • Im not asking for snippets! I just need the completion item to complete itself like basic keywords like if , for , fun etc should show in the completion menu at least.

  • Completions missing :

  • if , else

  • while , for

  • fun

  • module

  • switch

( 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

siduck avatar Nov 17 '21 16:11 siduck