UNPKG

flyde-vscode

Version:

Flyde is an open-source, visual programming language. It runs in the IDE, integrates with existing TypeScript code, both browser and Node.js.

14 lines (12 loc) 486 B
// const frame = document.querySelector('iframe'); // const vscode = acquireVsCodeApi(); // window.addEventListener('message', async e => { // const { source, type } = e.data; // if ( type === 'hotkeys-propagation') { // window.dispatchEvent(new KeyboardEvent('keydown', e.data.keyboardEvent)); // } else if (source === 'app') { // vscode.postMessage(e.data); // } else if (source === 'extension') { // frame.contentWindow.postMessage(e.data, '*'); // } // });