Mermaid-Chart / vscode-mermaid-preview

Previews Mermaid diagrams
MIT License
142 stars 15 forks source link

improve mermaid preview window layout behaviour #64

Closed g3o2 closed 5 years ago

g3o2 commented 5 years ago

Expected behaviour

Allow mermaid preview (based on .mmd files) window to be put anywhere according to the vscode layout specifications (left, right, bottom, top, etc.).

Actual behaviour

When one drags and drops an existing mermaid preview window to a different layout structure (e.g. top-down split instead of left-right split), with a mermaid .mmd file being previewed, the follow error is thrown by vscode:

Unable to open Mermaid Preview: ModelService: Cannot add model because it already exists!.

VS code 1.30.2 (dark theme).

vstirbu commented 5 years ago

fixed by #67