Skip to content

show some completions for record updates#5439

Open
giacomocavalieri wants to merge 1 commit intogleam-lang:mainfrom
giacomocavalieri:fix-5435
Open

show some completions for record updates#5439
giacomocavalieri wants to merge 1 commit intogleam-lang:mainfrom
giacomocavalieri:fix-5435

Conversation

@giacomocavalieri
Copy link
Member

  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

This adds label completions for record updates, just like function calls. This works when the code goes from a compiling state, eg. I'm typing Wibble(..todo, |), to an invalid state with a syntax error, Wibble(..todo, w|) because it relies on an outdated view of the LS of the project which happens to be good enough to provide completions.

I can't think of a good way of testing this, I'd like to hear what you think we could do for tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant