This extension provides some helpers for your Tinybird data projects:
Syntax highlighting
Adds syntax highlight for .datasource, .pipe and .incl files.
Commands
tinybird.sql
Execute any SQL in your Tinybird workspace by selecting a sentence in the editor and pressing the default Cmd+Enter keybinding (alternatively, you can call the command from the command bar or set your preferred mapping).
You'll see the results in the Tinybird SQL output panel.
Note: for this command to work you need to have your tb command properly configured. Please, refer to our docs for a quick start.
Configure the extension
For the Tinybird commands to work, you need to setup the following settings:
tinybird.dataProjectSubdir: Where your data project is located in the active workspace.
tinybird.venv: If you use a Python virtual env to work with Tinybird, put the venv name here.
tinybird.venvActivate: The activation command for your virtual env (see setting tinybird.venv). Default is bin/activate but for some shells you might need another one (for example bin/activate.fish for the fish shell).