Bruin is a unified analytics platform that enables data professionals to work end-to-end for their data pipelines. This extension is built to improve the development experience of data products on Bruin using Visual Studio Code.
- Applies YAML syntax coloring to Bruin code in SQL files (enclosed between
/* @bruin ... @bruin */
) and Python files (enclosed between""" @bruin ... @bruin """
).
- Allows folding and unfolding Bruin code regions in SQL and Python files for a cleaner workspace.
- Auto Folding: Configure this setting through the Settings UI under Extensions > Bruin.
Note: The Pylance extension may affect the auto-folding feature. If you encounter inconsistencies, review your Pylance settings or temporarily disable it.
- Renders SQL content within a VS Code Webview, enabling content copying and automatic refreshing on file updates.
- Adapts to theme changes (dark/light/Dark high contrast)
- Introduces SQL validation and execution capabilities.
- Custom messages for invalid SQL queries.
- Ability to run SQL with additional flags such as
--downstream
and--full-refresh
. - Date inputs for selecting start and end dates for the
run
command. Exclusive End Date
checkbox to adjust the end date to the end of the selected day.
- New panel to display the lineage of a single asset.
- Ability to expand properties in the lineage view to see further upstream and downstream elements.
- Display and manage connections integrated with Bruin CLI.
- Add new connections directly from the UI.
- Delete existing connections via the UI.
- New tab in the side panel for easy installation and updates of Bruin CLI.
- Windows-specific Go check, with a link to documentation if Go is missing.
- Autocomplete support for
.bruin.yml
,pipeline.yml
, and*.asset.yml
files with predefined options and schema validations. - Snippets for creating Bruin root configuration, pipelines, and assets.
- Open Visual Studio Code.
- Navigate to the Extensions view (Ctrl+Shift+X).
- Search for "Bruin" and click Install.
Note: Ensure that you have the Bruin CLI installed on your system before using the new features. For guidance on installing the Bruin CLI, please refer to the official documentation.
Enclose Bruin code with delimiters:
- In SQL files:
/* @bruin
and@bruin */
- In Python files:
""" @bruin
and@bruin """
Bruin code regions are automatically foldable.
- Open any SQL file.
- Click the Bruin logo icon in the top right menu.
- A Webview will open, previewing the SQL content.
- Click the "Copy" icon to copy the content.
- The theme color of the view matches the current VS Code theme.
- Validation: Click the "Validate" button to validate the current SQL or entire pipeline.
- Run with Flags: Click the "Run" button to execute the SQL command in an integrated terminal, with optional flags and date inputs.
Access the new lineage panel to view and interact with asset lineages.
Use the new connections section from Settings
tab to view, add, or delete connections directly from the UI.
Access the Bruin CLI management tab Settings
in the side panel for easy installation and updates.
- Display render button for all file extensions, ensuring Bruin render is always visible.
- 0.33.0: Added a Control panel with zoom, view fit, and lock buttons and reduced top gap in the lineage flow.
- 0.32.13: Resolved an issue where terminal commands occasionally missed the first letter, causing execution failures.
- 0.32.12: Format the rendering error message to display differently based on the phase (rendering or validation).
- 0.32.11: Fixed ConnectionForm not resetting when switching between edit and new connection.
- 0.32.10: Improved truncation behavior for pipeline and asset names and ensured asset name edit mode closes on mouse leave.
- 0.32.9: Asset validation errors now expand for single assets and pipelines, while multiple pipeline errors stay collapsed.
- 0.32.8: Fixed an issue where new files opened in the side panel's group, causing confusion; the panel now locks by default.
For a full changelog, see Bruin Extension Changelog.
To update to the latest version, search for "Bruin" in the Extensions Marketplace and click the Update button.