Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LSP] Missing language keywords completions #512

Open
siduck opened this issue Nov 12, 2021 · 2 comments
Open

[LSP] Missing language keywords completions #512

siduck opened this issue Nov 12, 2021 · 2 comments
Labels
feature request tooling Tooling related feature (formatter, documentation, production builder)

Comments

@siduck
Copy link

siduck commented Nov 12, 2021

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

@Sija Sija added the tooling Tooling related feature (formatter, documentation, production builder) label Nov 12, 2021
@gdotdesign
Copy link
Member

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}}
    

@siduck
Copy link
Author

siduck commented Nov 17, 2021

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

@Sija Sija changed the title Missing mint completions in mint lsp [LSP] Missing language keywords completions Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request tooling Tooling related feature (formatter, documentation, production builder)
Development

No branches or pull requests

3 participants