Created
October 13, 2020 21:32
-
-
Save ljmotta/fd1acb5c2fe65ab9e34709ee76a38766 to your computer and use it in GitHub Desktop.
Base64Png VS Code init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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