cuelsp
cuelsp copied to clipboard
Code snippet
Dagger plan always follows the same logic: 1 - Define your action 2 - Create or call definition
To improve user experience, we could integrate code snippet in the LSP, it will act as a follow up of #43. For instance, if you have the definition
#Definition: {
field1: number
field2: string
}
When a user tip #De, we can suggest #Definition but then we he press enter, we could automatically include required field of the definition so the user do no have to look at what is required or not.
That will produce the following completion
action: foo: #Definition & {
field1: // set cursor here
}