|
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] ZedUmple for ZedUmple language support for the Zed editor, providing syntax highlighting, diagnostics, code completion, inlay hints, and go-to-definition for InstallationThe extension is available on the Zed marketplace. Install it from Zed:
The extension automatically downloads the LSP server and Umple compiler — no manual setup required. Dev install (from source)To work on the extension itself, install it as a dev extension:
Prerequisites
Features
Formatting is provided by the LSP server. It formats parse-clean Umple structure, parser-visible structural commas, and already split multi-line list indentation, but intentionally does not format embedded target-language method or action bodies. Formatter behavior belongs in How It WorksThe extension automatically installs Configuration (optional)You can adjust certain settings using Settings … / Open Settings (cmd ,) or by editing the Configuration settings for usersBy default lines of Umple code that have errors or warnings are underlined; you can see the error or warning at the bottom of the screen if you click on the underlined text. However, if you would like such messages from the Umple compiler to appear inline (on the line where each problem occurs), then you can change the Languages & Tools / Diagnostics / Enabled setting to be true. You can also do this by adding the following to the settings.json file. {
"diagnostics": {
"inline": {
"enabled": true
}
}
}
Configuration settings for developers working on the Umple LSP serverFor development, you can override the auto-downloaded server with a local build. Add to your Zed {
"lsp": {
"umple-lsp": {
"settings": {
"serverPath": "/path/to/umple-lsp"
}
}
}
}
This points to a locally cloned and built umple-lsp repository. UpdatingMarketplace install: Zed updates installed extensions automatically. New versions reach you via the Zed Extensions marketplace. Dev install (from source): pull the latest changes and Zed will pick them up: cd umple.zed git pull Then restart Zed or reload the extension. The LSP server itself is downloaded from npm at every extension load (via Grammar SyncThe tree-sitter grammar and query files are derived from umple-lsp. The following files are auto-synced and should not be edited manually:
How sync usually happensA GitHub Action in Manually syncing (rarely needed)If the auto-PR workflow is broken or you want to sync ahead of an upstream push: ./scripts/sync-grammar.sh --source /path/to/umple-lsp Checking for drift (CI or local)./scripts/sync-grammar.sh --source /path/to/umple-lsp --check This exits with code 1 if any synced file is out of date. The Where to Make Language-Feature ChangesThis extension is mainly the Zed wrapper. Core language behavior belongs in
Zed’s visible syntax highlighting comes from the synced tree-sitter highlight query at When highlighting changes upstream, prefer the sync workflow or run: ./scripts/sync-grammar.sh --source /path/to/umple-lsp --check ./scripts/sync-grammar.sh --source /path/to/umple-lsp Change this repo directly only when the Zed wrapper behavior changes or when accepting the generated grammar/highlight sync. TroubleshootingExtension fails to compile (“failed to compile Rust extension”)Zed compiles extensions to WebAssembly ( # Remove Homebrew rust if installed brew uninstall rust brew install rustup # Or install rustup directly via [rustup](https://rustup.rs/) LSP server not startingCheck View > Toggle Language Server Logs in Zed for errors. Common issues:
No diagnosticsDiagnostics require Java 11+. Check the LSP logs (View > Toggle Language Server Logs) for errors related to LicenseMIT Original markdown source for this page: https://github.com/umple/umple.zed/blob/master/README.md |