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

Language server completion within consts #3631

Open
Blankeos opened this issue Sep 19, 2024 · 1 comment
Open

Language server completion within consts #3631

Blankeos opened this issue Sep 19, 2024 · 1 comment
Labels
help wanted Contributions encouraged priority:medium

Comments

@Blankeos
Copy link

Blankeos commented Sep 19, 2024

Not sure if it's a bug, but this could be a feature request as well.

My experience with Record Types and Generic Custom Types have been pretty clunky.

Here's a specific instance where when I press "Ctrl + Space", intellisense doesn't work (for Record Types), when I expect it to.

It should ideally show me what the type or the name of the parameter my cursor is currently on.

gleam.intellisense.mp4

Idk if it's the LSP getting confused between Generics and Instantiating a Record Type because it uses almost the same same syntax e.g. MyType(generic) (with generics) and e.g. MyType("propertyvalue") (Instantiating record types).

@Blankeos Blankeos added the bug Something isn't working label Sep 19, 2024
@lpil
Copy link
Member

lpil commented Sep 19, 2024

The feature you are reporting as broken does not yet exist! It is planned but I'm not sure there's a tracking issue, so I'll convert this.

@lpil lpil changed the title Intellisense with Record Types? (Using VSCode Gleam) Autocompletion within consts Sep 19, 2024
@lpil lpil changed the title Autocompletion within consts Language server completion within consts Sep 19, 2024
@lpil lpil added help wanted Contributions encouraged priority:medium and removed bug Something isn't working labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged priority:medium
Projects
Status: Unfinished
Development

No branches or pull requests

2 participants