zenstack/packages/ide/vscode
Yiming Cao 0d1faf1ef7
fix(lsp): get language server on par with v2 (#379)
* fix(lsp): get language server on par with v2

* fix typo

* addressing PR comments
2025-11-07 09:57:51 -08:00
..
asset feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
src fix: clean up plugin loading and fix VSCode extension (#312) 2025-10-17 12:41:11 -07:00
.gitignore feat: vscode extension (#23) 2025-06-16 16:42:34 +08:00
eslint.config.mjs chore: upgrade eslint (#36) 2025-06-21 23:26:56 +08: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 fix(lsp): get language server on par with v2 (#379) 2025-11-07 09:57:51 -08: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
tsup.config.ts feat: vscode extension (#23) 2025-06-16 16:42:34 +08: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