vscode-drawio icon indicating copy to clipboard operation
vscode-drawio copied to clipboard

How to access the `json` configuration?

Open mihaiconstantin opened this issue 2 years ago • 2 comments

In the official docs, there is an option to adjust various settings via Extras > Configuration. Is it possible to have access to the configuration object while using the VSCode extension?

More specifically, I would like to add the following config

{
  "zoomFactor": 1.05
}

as discussed at https://github.com/jgraph/drawio-desktop/issues/52#issuecomment-985344468 to fix the zoom sensitivirty.

mihaiconstantin avatar Mar 01 '22 17:03 mihaiconstantin

This is not possible out of the box, but I'm open for a PR that introduces a new VS Code setting and forwards it to draw.io. Should be straight forward.

hediet avatar Mar 02 '22 09:03 hediet

@hediet I am not at all familiar with the source of drawio, but I will try to look at it in the coming weeks and send a PR if I can figure it out. In the meantime, thanks for confirming that this is not possible out of the box.

mihaiconstantin avatar Mar 02 '22 16:03 mihaiconstantin