bpmn-io / vs-code-bpmn-io

View and edit BPMN diagrams in VSCode. Powered by bpmn.io tools.

Home Page:https://marketplace.visualstudio.com/items?itemName=bpmn-io.vs-code-bpmn-io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Native editor support

pinussilvestrus opened this issue · comments

What should we do?

Instead of opening the BPMN editor inside a new webview panel, we should investigate whether it's feasible to offer native editor support, like image-preview has it.

Why should we do it?

This way we would have the editor as the default editor for BPMN diagrams in VS Code when opening such a file. Editing the XML should be still possible in some way, e.g. by changing the file type.

From a product perspective, it makes more sense to have the editor at first glance and avoid showing cryptic XML to the user.

Additional Notes

We started work on this branch. Currently, it's not allowed to ship proposed VS Code api to the marketplace, cf. documentation.

One example extension which seems to get a custom editor extension up and released without unstable API: https://github.com/hediet/vscode-drawio

Seems like stable API support for custom editors is not far away: https://code.visualstudio.com/api/extension-guides/custom-editors