OpenGate (og) for VS CodeWrite OpenGate's embedded JavaScript — automation rules, connector functions, provision functions, dashboards and widgets — in your editor instead of the platform's, against a live tenant.
Quick startFive minutes, and nothing to install beforehand. 1. InstallSearch OpenGate in the Extensions view, or:
You do not need the 2. Open a folderAny folder — it is where your artifacts get pulled to. One must be open, or there is nowhere to put them. 3. Log in
Then it asks how much access you want. Take Everything the first time; the trade-off is explained in Logging in. 4. Get something to editClick the globe in the activity bar. It lists what is on your tenant. Expand Rules and click one. It is not on your machine yet, so you are asked where to put it — accept the suggestion. It downloads and opens. 5. See it workIn the file that just opened, type a datastream identifier that does not exist:
It is underlined before you deploy anything. Pulling the artifact also wrote the type declarations for your organization: its real datastream identifiers and the ~450 platform functions. Now change something real and right-click the file → OpenGate → Diff against the platform. You get VS Code's own diff: your version against what the tenant has right now. Nothing has been deployed. Deploy is a separate action that shows you the diff and asks first. What this does, and what it does notA thin shell over the The autocompletion does not come from this extension, and works with or
without it. The Platform viewThe globe in the activity bar lists your tenant: Rules, Connector functions, Provision functions and Workspaces, expanded on demand.
Matching is by identifier, not folder name: names are not unique and slugs are derived. A family that cannot be listed shows the reason under its own node rather than as a popup — workspaces need the Web API token, and that failing should not hide the other three. Right-clickEverything is reachable with a mouse. Right-clicking gains an OpenGate submenu: in the Explorer, in the editor, on the editor tab, and on a node in the Platform view. In the tree the menu depends on what you have. An artifact that is not here offers only Pull — everything else needs a local directory to act on. Commands
What each family supportsog itself is not uniform across families, and the extension follows it rather than pretending otherwise:
A widget is a grid item, not something the platform can address on its own, so
the dashboard it sits in is the smallest unit og can compare or deploy. Editing
a widget works exactly as editing a rule does — the diff on a formatter shows
that formatter — but the deploy and its preview act on the dashboard, and say so
before they do. It is the same boundary A workspace is the one artifact with no single-file view: compare the whole tree instead. Every command acts on the artifact the file belongs to, found by walking up for
Logging in
Why it asks how much access you want. OpenGate allows one web session per user. The Web API sign-in that workspaces and dashboards need can therefore evict your browser session on the same account, repeatedly. Declining it covers rules, connector functions and provision functions and leaves your browser alone. A dedicated account for the CLI avoids the question entirely. Commands that need the platform check the session before doing the work, not
after failing: Settings
On
|
| What you see | What it means |
|---|---|
| you are not logged in / your session expired | Take Log in. The difference matters: one means you never did, the other that it lapsed |
HTTP 401: Unauthorized |
A session the platform rejected. Take the Log in button on the error |
| the CLI was not found | No og on PATH. Take Download it, or set og.path |
| older than 2.4.0 | Your og predates dashboard show/dashboard diff, so widgets are not editable. Take the offer to fetch a newer one |
| The OpenGate submenu is missing | The extension activates on a folder that contains artifacts. Open one, or pull something from the Platform view first |
| Workspaces will not list | They need the Web API token. Log in again choosing Everything |
No completion in a .js |
That artifact has no og-globals.d.ts. Run Regenerate editor typings |
| A diff opens empty | Usually an og too old for show --path |
| og has no single-file view of a workspace | Correct: use What deploying this artifact would change, which compares the whole tree |
Related
Licence
Apache-2.0.