p0tta
p0tta

Reputation: 1651

Is there a way to build visual plugins in VS Code

I would like to build a plugin where I put a Chart or a Tree component for people to drag and drop and use/build their own flows. Is this possible to build in VS Code? Are there any examples or documents on how to do that?

Upvotes: 2

Views: 383

Answers (1)

Mike Lischke
Mike Lischke

Reputation: 53345

Yes, that's possible. You can use a WebView instance to show graphical output (written in HTML). In my vscode extension (https://github.com/mike-lischke/vscode-antlr4) I display a visual parse tree using D3.js:

enter image description here

In the graphic you can collapse nodes, zoom in/out, move the viewport with the mouse and more.

Upvotes: 3

Related Questions