-
Notifications
You must be signed in to change notification settings - Fork 737
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
Support completion for table key specifier/constraint #32886
Comments
Hi @mohanvive, Had a look of the mentioned cases. Key specifier field suggestion has to be improved. However, Key type constraint seems to be suggested on beta4-snapshot. Can you verify whether the above is still there? |
Yes, it does suggest types for the table key constraint. However, it is not accurate because table key constraint type only can be a type of the fields which are defined as readonly. For example, if |
I see. Thanks @mohanvive |
suppose a user needs to use a particular type that he has not defined in the row type parameter. In that case we should suggest typedefs and modules.To accommodate both the scenarios we can sort the completions so that the already defined readonly params are on top. This is the practice that we follow in other contexts. WDYT @mohanvive ? |
Yes, that makes sense. +1. |
Description:
Key specifier and key constraints are two possible options which help to define the key/key type for the table. As of now, LS supports completions for key specifier at table type. However below completion suggestions are missing now.
The text was updated successfully, but these errors were encountered: