🐞 Bug Description
When I open or validate a .dbml file that includes note: fields or multi-line notes,
VS Code throws the following syntax error:
Expected "delete:", "update:", comment, or whitespace but "n" found.
⚙️ Environment
- VS Code Version: 1.xx.x
- vscode-dbml Version: 0.4.1
- OS: Ubuntu 28.04
- Node.js: 18.x (using pnpm + Docker)
💡 Steps to Reproduce
- Create a
.dbml file with this content:
Table users {
id int [pk]
username varchar [not null, unique, note: 'User name']
}
❗ Expected Behavior
The .dbml file should open without any syntax errors.
⚠️ Actual Behavior
VS Code shows this parsing error:
Expected "delete:", "update:", comment, or whitespace but "n" found.
❤️ Additional Info
It seems the extension parser doesn’t recognize note: attributes in field definitions.
Would be great if this could be aligned with the official DBML syntax.