vscode/qodana/media/runLocally.js (9 lines of code) (raw):

//@ts-check // This script will be run within the webview itself // It cannot access the main VS Code APIs directly. (function () { const vscode = acquireVsCodeApi(); document.querySelector('.run-locally-button').addEventListener('click', () => { vscode.postMessage({ type: myConstants.COMMAND_RUN_LOCALLY }); }); document.querySelector('.view-history-button').addEventListener('click', () => { vscode.postMessage({ type: myConstants.COMMAND_OPEN_LOCAL_REPORT }); }); }());