From ef272e4d961bd5506a00306641b09c2f114c9a1a Mon Sep 17 00:00:00 2001 From: Root At Skic Date: Fri, 6 Nov 2026 23:58:24 +0200 Subject: [PATCH] 0.10.2: leaving Source hides the YAML editor Going back from Source to Model, Diagram or View left the editor on the page under the picture when nothing had been edited, since the page was only replaced after a re-render. The pane now hides whenever Source is off. --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- src/webview/source/index.ts | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18aa98d..9e9ab37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.10.2 — 2026-11-07 + +- Fixed: going back from **Source** to **Model**, **Diagram** or **View** left the YAML editor on the page under the picture when nothing had been edited. It now hides at once. + ## 0.10.1 — 2026-11-06 - **Archify Sync is easier to find.** In workspaces with Archify files, **Archify Sync** sits in the status bar. Click it for a menu: sign in, share a model, join one, set the server address, open the settings. It shows the server you are signed in to, and the live state once a model is shared. `archify.sync.statusBar: false` hides it; nothing else changes without a server. diff --git a/package-lock.json b/package-lock.json index a3943e7..5b4ee09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "archify-vscode-ext", - "version": "0.10.1", + "version": "0.10.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "archify-vscode-ext", - "version": "0.10.1", + "version": "0.10.2", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "^6.20.4", diff --git a/package.json b/package.json index 8fb397f..629c2b3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "archify-vscode-ext", "displayName": "Archify Diagram Viewer", "description": "Archify diagrams in VS Code. Write diagrams as .archify files in YAML: they open as the interactive diagram, with live updates, validation, templates and completion. Also previews Archify's own JSON files (*.architecture.json, …) and opens rendered Archify HTML.", - "version": "0.10.1", + "version": "0.10.2", "publisher": "root-at-skic", "license": "MIT", "sponsor": { diff --git a/src/webview/source/index.ts b/src/webview/source/index.ts index 91402b7..8f49b82 100644 --- a/src/webview/source/index.ts +++ b/src/webview/source/index.ts @@ -23,6 +23,7 @@ html.archify-source-on .container > :not(.header):not(#archify-source), html.archify-source-on body > :not(.toolbar):not(.container):not(.archify-model-head):not(.archify-model-switch-row):not(#archify-source):not(script):not(style):not(.archify-modal-backdrop), html.archify-source-on #btn-3d, html.archify-source-on .archify-vscode-notice { display: none !important; } +html:not(.archify-source-on) #archify-source { display: none !important; } .archify-source { display: flex; flex-direction: column; box-sizing: border-box; min-height: 260px; margin: 0.75rem 0 1rem; } body > .archify-source { max-width: 1400px; margin: 0.75rem auto 1rem; padding: 0 2rem; } .archify-source-editor { flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--panel-border, var(--vscode-editorWidget-border, rgba(128,128,128,.35))); border-radius: 0.75rem; -- 2.54.0