zenstack/packages/ide/vscode
github-actions[bot] 87644178b3
[CI] Bump version 3.7.1 (#2678)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-05-22 08:31:58 -07:00
..
asset feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
scripts chore: migrate from tsup to tsdown (#2580) 2026-04-15 12:13:34 -07:00
src fix(vscode): update language server module extension to .cjs after tsdown migration (#2597) 2026-04-20 18:54:44 -07:00
.gitignore feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
eslint.config.mjs feat(ide): add telemetry tracking to VSCode extension (#2505) 2026-03-21 16:57:09 -07:00
language-configuration.json feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
LICENSE feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
package.json [CI] Bump version 3.7.1 (#2678) 2026-05-22 08:31:58 -07:00
README.md chore: separate extension and language id for vscode extension (#217) 2025-08-30 18:11:11 +08:00
res feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
syntaxes feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
tsconfig.json feat: cli plugin support (#181) 2025-08-17 16:35:07 +08:00
tsdown.config.ts chore: migrate from tsup to tsdown (#2580) 2026-04-15 12:13:34 -07:00

ZenStack V3 VS Code Extension

ZenStack is the modern data layer for TypeScript applications. It provides a data modeling language, a type-safe ORM with built-in access control, and other utilities that help you streamline full-stack development. This VS Code extension provides code editing helpers for authoring ZenStack's schema files (.zmodel files).

Use this extension if you are using ZenStack v3.x, otherwise use the original extension that works with v2.x. See Configuration for how to use both versions side by side.

Features

  • Syntax highlighting
  • Inline error reporting
  • Go-to definition
  • Hover documentation
  • Code section folding

Configuration

Side by side with the original ZenStack extension

If you have the original ZenStack v2 extension installed, it may compete with this extension on handling .zmodel files. In this case, add the following settings to your .vscode/settings.json file to specify which extension should handle .zmodel files.

To let this extension handle .zmodel files, add:

"files.associations": {
    "*.zmodel": "zmodel-v3"
},

To let the v2 extension handle .zmodel files, add:

"files.associations": {
    "*.zmodel": "zmodel"
},

Auto formatting

To automatically format on save, add the following to your .vscode/settings.json file:

"editor.formatOnSave": true

To enable formatting in combination with prettier, add the following to your .vscode/settings.json file:

"[zmodel-v3]": {
    "editor.defaultFormatter": "zenstack.zenstack-v3"
},

Community

Join our discord server for chat and updates!

License

MIT