Skip to content

feat: save diagrams as .json with pretty printing, open accepts .json and .txt#12

Open
DisciplinedSoftware wants to merge 3 commits intoOlegIGalkin:mainfrom
DisciplinedSoftware:feature/json-diagram-extension
Open

feat: save diagrams as .json with pretty printing, open accepts .json and .txt#12
DisciplinedSoftware wants to merge 3 commits intoOlegIGalkin:mainfrom
DisciplinedSoftware:feature/json-diagram-extension

Conversation

@DisciplinedSoftware
Copy link

Changes

Both VS Code and Visual Studio

  • Save format: diagrams are now saved as .json (previously .txt) — file dialogs updated with new filter and default filename
  • Pretty print: saved JSON is formatted with 2-space indentation for readability
  • Open dialog: accepts both .json and .txt files for backwards compatibility with existing saved diagrams

VS Code only

  • Fixed dev webpack config missing CopyWebpackPlugin: every dev build wiped out/MindElixir/MindElixir.js, causing a silent ES module import failure that left a blank canvas and non-functional buttons

Pierre-Luc Gagné and others added 3 commits March 2, 2026 02:17
- Change save dialog filter and default filename to use .json extension
- Change DefaultDataFileName constant to CodeMindMap.json
- Update open dialog filter to accept both .json and .txt files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The dev webpack config had 'clean: true' but no CopyWebpackPlugin,
so every dev build wiped out/MindElixir/MindElixir.js. The webview
imports this file via ES module; without it the entire module script
fails silently -- blank canvas and non-functional buttons.

Mirrors the same fix already applied on feature/fix-keyboard-after-click-without-focus.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 2, 2026 07:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants