Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 13, 2020 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/fd1acb5c2fe65ab9e34709ee76a38766 to your computer and use it in GitHub Desktop.
Save ljmotta/fd1acb5c2fe65ab9e34709ee76a38766 to your computer and use it in GitHub Desktop.
Base64Png VS Code init
import { init } from "@kogito-tooling/editor/dist/envelope";
import { Base64PngEditorFactory } from "base64png-editor";
import { ChannelType, getOperatingSystem } from "@kogito-tooling/channel-common-api";
declare global {
export const acquireVsCodeApi: any;
}
init({
container: document.getElementById("envelope-app")!,
bus: acquireVsCodeApi(),
editorFactory: new Base64PngEditorFactory(),
editorContext: { channel: ChannelType.VSCODE, operatingSystem: getOperatingSystem() },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment