vs-code-bpmn-io icon indicating copy to clipboard operation
vs-code-bpmn-io copied to clipboard

Native editor support

Open pinussilvestrus opened this issue 5 years ago • 3 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.

pinussilvestrus avatar Mar 02 '20 12:03 pinussilvestrus

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

pinussilvestrus avatar May 11 '20 11:05 pinussilvestrus

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

pinussilvestrus avatar May 11 '20 11:05 pinussilvestrus

Example plugin that goes this route: https://github.com/yleflour/vscode-bpmn-editor/blob/main/src/bpmnEditor.ts#L3

pinussilvestrus avatar Apr 26 '22 07:04 pinussilvestrus