flux-lsp icon indicating copy to clipboard operation
flux-lsp copied to clipboard

Feature Request. Include a function browser and inject tool like the InfluxDB UI has

Open rockstar opened this issue 3 years ago • 0 comments

@Anaisdg commented on Fri Sep 03 2021

The ability to browse and inject complete functions in the UI is so useful for beginner (and advanced Flux users who are always making syntax mistakes ;p). It's also faster than autocompleting each portion of a Flux query with VS code.

Perhaps the autofill capabilities could be extended to fill an entire function if nothing is included. Current behavior: If you type

map(

and hit tab nothing is autofilled. Desired behavior: If you type

map(

and hit tab, return the following:

  |> map(fn: (r) => ({ r with _value: r._value * r._value }))

rockstar avatar Sep 03 '21 20:09 rockstar