Penstock

VS Code / Start here

Where things are in VS Code

Every place Penstock shows up in VS Code, in one table, so you can find any feature.

Free

The map

WhereWhat is there
The editor of a .bpmn, .bpmn.xml, .bpmn20.xml, .dmn or .form fileA custom editor, called Penstock BPMN Editor, Penstock DMN Editor or Penstock Form Editor. It opens in place of the text when you open the file. See The BPMN editor.
File icons in the ExplorerDedicated file icons for .bpmn, .bpmn.xml, .bpmn20.xml, .dmn and .form files.
The toolbar of the editorAuto layout, Check, Simulate, Monitor, Scenarios, the More menu, Deploy and the sidebar toggle. See Toolbar and More menu.
The sidebar of the editorThe column beside the canvas, with the tabs Properties, Scenarios, Problems, Comments, Monitor and Code. These are the editor's own tabs, not VS Code's. See The sidebar.
The More menu of the editorA searchable list of every action, in the editor. See Toolbar and More menu.
The Command Palette, under PenstockEvery action of the editor as a command with the name it has in the editor: Auto layout, Check, Deploy, Export…, Share as HTML… and the rest. Also Penstock: Create element template, Penstock: Find action, Penstock: Open as text, Penstock: Compare with…, Penstock: Licence and account and Penstock: Sign in. See below.
The Command Palette: Open documentationOpens this guide in your browser.
The Activity Bar view container PenstockThe Penstock tool window: processes, workers, variables, messages, errors, decisions, forms, templates, deployment, files, and Migrate to Camunda 8. The toolbar has Run all, reload from disk, group by file, folders, Open penstock.yaml (creates the file if missing), and a Run Penstock menu with 9 CLI commands: check, scenarios, junit, code, docs, format, change, export, doctor. Row menus offer Open, Find usages in code, Copy ID, Go to implementation, Deploy, test actions, and CLI commands on the row's file. Pro. See Code links in VS Code.
The Problems viewDiagnostics from three sources: penstock for code link findings (unimplemented steps, unused workers, unknown names) with quick fixes; penstock-diagram for diagram check findings and linter rules; and penstock-config for penstock.yaml problems. Pro for code links and flow analysis. See Code links in VS Code.
Above a worker, delegate or subscription in your codeA code lens that names the diagram and element that use it. In the editor, Create element template generates a template at the caret. F2 renames a name shared across code and diagrams. Pro. See Code links in VS Code.
Paused in a worker during debuggingWhen the debugger pauses in Java worker code, the diagram marks the paused task and active elements. Pro. See Code links in VS Code.
The Test ExplorerA controller called Penstock scenarios, with one node per diagram and one per test case. Pro. See Scenarios.
The Output panelA channel called Penstock Test Runs, with the steps and the trace of a test run.
The context menu of a .bpmn file in the Explorer and in Source ControlCompare with…, which opens the visual diagram diff. Pro. See Diagram diff.
NotificationsWhat's new after an extension update (with an action to preview CHANGELOG.md), an offer to rename in code when changing a shared name in a diagram, and licence or connection messages.
The status bar, right sideThe licence: Penstock Free, Penstock Pro trial: 27d, Penstock Pro or Penstock Team. Click it for the account dialog. See Licence in VS Code.
VS Code's SettingsNothing of Penstock's own. The extension contributes no settings. The project is set up in penstock.yaml. See penstock.yaml.
credit-hold.bpmn in the Penstock editor after pressing Check. The sidebar shows the Problems tab with the count 5, the text 3 errors, 2 warnings, a Recheck button, and the groups How it runs and Rules with their findings. The VS Code status bar at the bottom left shows 0 errors and 0 warnings.
The Problems tab of the editor's sidebar after Check, with three errors and two warnings. Findings also appear in VS Code's Problems view under penstock-diagram.
order-to-cash.bpmn with the Scenarios tab of the sidebar open. It lists order-to-cash.json with three scenarios and has the buttons Generate, Run all, Open scenario and Run.
The Scenarios tab of the sidebar, with the three scenarios of order-to-cash.json.
invoice-approval.form in the Penstock editor: a Components palette with Input, Selection and Presentation groups on the left, the form Approve invoice on the canvas, and a Preview tab on the right.
A .form file opens in the form editor, with the Components palette and a live preview.

Text and diagram

The text document is the only history of a diagram. An edit on the canvas changes the document, and an edit in a text editor beside it changes the canvas. Undo, Redo, Revert and git all act on that document. A file that changes on disk reaches the canvas.

To read the XML, run Penstock: Open as text while the editor has focus. The file opens in VS Code's text editor beside the diagram and is remembered as one you opened as text, so Penstock does not switch it back to the diagram when VS Code starts.

The Command Palette

What you see

Common problems

I cannot find a feature.
Check the table above. Some actions are only in the More menu of the editor or in the Command Palette. A few are not available in VS Code yet. See VS Code.
There is no Penstock page in Settings.
Right. The project is set up in penstock.yaml, and the personal choices are in ~/.penstock/preferences.json.