hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

How to access the `json` configuration? #301

Open mihaiconstantin opened 2 years ago

mihaiconstantin commented 2 years ago

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.

hediet commented 2 years ago

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.

mihaiconstantin commented 2 years ago

@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.