DiagramView-as-code syntax is not recognized by the vscode extension

The new feature Diagram Views in DBML is great, but If I put it in my .dbml file, the vscode extension wont recognize it and report it as these errors:

A Custom element can only appear in a Project (3057)
A Custom element shouldn’t have a name (3001)

The issue is not even about being able to use this new feature (changing views) in vscode, but about it reporting errors when the syntax is perfectly correct.

1 Like

Hi @DanielSRS,

We are actively working on a new version of the vscode extension to support the diagram view. We will notify you when the new version is available.

Thanks.

Hi @DanielSRS,

We released a version 0.1.5 that allows you to write the DiagramView syntax in the editor.

We are working on the version that support showing the diagram view in the preview modal and will release soon.

Thanks.

1 Like

Great to hear that!

Looking forward for the upcoming updates. Thank you!

Hi @DanielSRS,

We released a new version for VScode extension that fully supports DiagramView-as-code syntax: New Feature: Diagram Views in DBML - #2 by Phuc_Nguyen

Please give it a try and let us know how it goes. Cheer.