forked from microsoft/sarif-vscode-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (30 loc) · 1.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!--
This page is for development purposes. It is the entry point for `webpack-dev-server`.
It mocks the html environment for `panel/Index.tsx`. Local Storage simulates `globalState`.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="index.css">
<style>
code { font-family: SF Mono, Menlo, Monaco, 'Courier New', monospace; }
</style>
</head>
<body class="vscode-dark">
<div id="root"></div>
<script>
acquireVsCodeApi = (() => ({ postMessage: message => {
const {command, ...rest} = message;
if (command === 'setState') {
const {state} = message;
localStorage.setItem('state', state);
return;
}
console.log(command, JSON.stringify(rest));
} }))
vscode = acquireVsCodeApi();
</script>
<script src="panel.js"></script>
<script src="index.js"></script>
</body>
</html>