@zenwave360/lsp-js 0.1.0-next.14.1 → 0.1.0-next.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,6 +53,8 @@ hover, definition, references, document symbols and formatting. `capabilities.ex
53
53
  with JSON-RPC `-32601`. lsp-jvm additionally exposes workspace concept and status requests.
54
54
  - `previewModes`: `true` when `zenwave/preview` accepts its additive `mode` parameter and grouped diagram representations.
55
55
  - `organizeModes`: `true` when `zenwave/organizeZflServices` accepts `mode` (`full`, the default, or `additive`).
56
+ - `savedPositions`: `true` when `zenwave/eventFlowViews` accepts `positions` and answers `savedPositions`.
57
+ - `flowVariants`: `true` when `zenwave/eventFlowViews` accepts its optional `variant` parameter and returns variants.
56
58
 
57
59
  ## Custom requests
58
60
 
@@ -61,7 +63,7 @@ hover, definition, references, document symbols and formatting. `capabilities.ex
61
63
  | `zenwave/hierarchy` | `{ uri }` | hierarchy nodes `{ id, label, kind, language, sourceUri, sourceRange, children, relatedResources, uiHints, viewNodeIds }[]` |
62
64
  | `zenwave/forwardReferences`, `zenwave/reverseReferences` | `{ uri, semanticId }` | navigation targets |
63
65
  | `zenwave/organizeZflServices` | `{ uri, mode?: "full" \| "additive" }` | the reorganised ZFL text, or `null` |
64
- | `zenwave/eventFlowViews` | `{ textDocument: { uri } }` | `{ flowGraph, serviceGraph }`: dsl-kotlin's laid-out flow and service view models, each with its `schema` (`zfl.eventflow.view@1`, `zfl.services.view@1`) |
66
+ | `zenwave/eventFlowViews` | `{ textDocument: { uri }, variant?: string, positions?: { [nodeId]: { x, y } } }` | `{ flowGraph, serviceGraph, variants: [{ id, title }], savedPositions? }`: dsl-kotlin's laid-out flow and full service view models, each with its `schema` (`zfl.eventflow.view@1`, `zfl.services.view@1`); `variant` selects the flow graph only. `positions` (full diagram only; ignored with `variant`) replaces automatic layout when every node has a finite position, and then `savedPositions` is `{ applied: true }`; otherwise the layout is automatic and it is `{ applied: false, reason: "missing-nodes" \| "invalid", missing: [nodeId] }`. A non-object `positions` is `-32602` |
65
67
  | `zenwave/preview` | `{ textDocument: { uri }, mode?: "docs" \| "diagrams", sequenceRenderMode?: "SEPARATE_VARIANTS" \| "ALT_BLOCKS" \| "AUTO" }` | `{ representations: { id, title, format: "MARKDOWN" \| "MERMAID" \| "HTML", content, group? }[], defaultRepresentationId }` |
66
68
  | `zenwave/symbolAt` | `{ textDocument: { uri }, position: { line, character } }` | `{ uri, semanticId, range? }`, the input of the two reference requests, or `null` when nothing is declared or referenced there |
67
69
 
@@ -88,7 +90,7 @@ the default). What a model wrote is escaped in the Markdown, so a `<script>` sho
88
90
  defaults to `ALT_BLOCKS`. Null properties are omitted from every result.
89
91
 
90
92
  For a ZDL, `mode: "diagrams"` returns only individual `MERMAID` diagrams. Every representation has a `group` of
91
- `Services`, `Aggregates`, `State Machines`, `Events`, `Commands` or `Other entities`; absent kinds have no representation.
93
+ `Services`, `Aggregates`, `State Machines`, `Events`, `Commands` or `Unused entities and enums`; absent kinds have no representation.
92
94
 
93
95
  ### Plugin catalogue
94
96