influxdata / vsflux

Flux language extension for VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flux

VSCode LICENSE Slack Status

A Visual Studio Code extension with support for the working with InfluxDB instances.

Features:

  • Flux language support
    • Syntax highlighting
    • Autocompletion
    • Error highlighting
    • Find references
    • Go to definition
    • Function signatures
    • Code folding
    • Symbol renaming
    • Document symbols
  • InfluxDB server
    • Add/edit/delete buckets
    • Inspect bucket measurements and tags
    • Add/edit/delete tasks (2.x series only)
    • Run flux scripts natively and show results
    • Environment-specific autocompletion (bucket names, etc)

Installation

The extension can be installed through the VSCode Marketplace.

Using the cli configurations

Rather than using vscode to store information about influxdb instances fro the InfluxDB pane, vsflux can use existing influx cli configurations to populate the InfluxDB pane of connections. To do this, edit %APP_DATA%/settings.json to add the following:

{
  "vsflux.datasource": "cli"
}

To revert this setting, change "cli" to "db" or remove the line entirely.

Contributing

Contribution guidelines and instructions on how to build from source can be found in the Contributing Guide.

About

Flux language extension for VSCode

License:MIT License


Languages

Language:TypeScript 83.9%Language:JavaScript 6.4%Language:HTML 5.3%Language:Shell 2.3%Language:CSS 2.0%Language:Makefile 0.1%