Closed KwilLuke closed 18 hours ago
These all sound great to me. Honestly all I really had in mind was syntax highlighting and validation, but I do agree that these features would be really useful to people building with Kuneiform.
@charithabandi feel free to close this issue if all of the points are addressed.
Some initial features come to mind...
[ ] Syntax highlighting for all Kuneiform keywords, SQL keywords (and discriminately applying highlighting based on keywords, such that SQL keywords are only highlighted within procedures/actions, words like "public" and "view" are only highlighted in action/procedure signature, etc), and variable types (string, boolean, number).
[ ] Auto closing brackets and strings (e.g. when i type "{", it autocompletes the "}". And if I type "}" right before the autocompleted "}" it skips over it rather than adding a new curly bracket). For the monaco editor, this is a setting that is configurable - I imagine it is similarily simple with the language server?
[ ] Context aware autocomplete for (1) tables; (2) actions; (3) procedures; (4) action/procedure parameters. "Context aware" means that autocomplete show up when they are syntactically allowed, but not when they are not. A few examples that come to mind:
procedure do_something($x1, $x2)
should only be show up withinprocedure do_something()
.@brennanjl @charithabandi any other ideas?