tinybirdco / vscode-tinybird-support

Tinybird support for Visual Studio Code
MIT License
19 stars 3 forks source link

Include file formatting #12

Open alrocar opened 1 year ago

alrocar commented 1 year ago

We now support it via runonsave + tb fmt

"emeraldwalk.runonsave": {
        "commands": [
            {
                "match": "(.*\\.pipe)?(.*\\.datasource)?(.*\\.incl)?",
                "isAsync": true,
                "cmd": "/Users/alrocar/.pyenv/shims/tb fmt ${file} --yes"
            }
        ]
    },

Either we document it / make it easy to work, or we put the command behind the regular VSCode keybinding for formatting files.