influxdata / vsflux

Flux language extension for VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Anaisdg opened this issue · comments

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 }))