vzcode 0.55.0 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-B9xnYYVb.css → index-mTosxc8C.css} +1 -1
- package/dist/assets/{index-LYnwcDG3.js → index-pF--hgc_.js} +1 -1
- package/dist/assets/{worker--Fv7mJZP.js → worker-pDIx6AF9.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/client/CodeEditor/style.scss +4 -0
- package/src/client/CodeEditor/typeScriptLinter.ts +2 -2
- package/src/client/useTypeScript/worker.ts +3 -1
package/dist/index.html
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css"
|
|
25
25
|
rel="stylesheet"
|
|
26
26
|
/>
|
|
27
|
-
<script type="module" crossorigin src="/assets/index-
|
|
28
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
27
|
+
<script type="module" crossorigin src="/assets/index-pF--hgc_.js"></script>
|
|
28
|
+
<link rel="stylesheet" crossorigin href="/assets/index-mTosxc8C.css">
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
|
31
31
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Diagnostic } from 'typescript';
|
|
2
2
|
import {
|
|
3
3
|
LinterResponse,
|
|
4
4
|
LinterRequest,
|
|
@@ -24,7 +24,7 @@ export const typeScriptLinter = ({
|
|
|
24
24
|
typeScriptWorker.postMessage(linterRequest);
|
|
25
25
|
|
|
26
26
|
//An array of diagnostic (CodeMirror) objects.
|
|
27
|
-
const tsErrors:
|
|
27
|
+
const tsErrors: Diagnostic[] = await new Promise(
|
|
28
28
|
(resolve) => {
|
|
29
29
|
typeScriptWorker.onmessage = (message: {
|
|
30
30
|
data: LinterResponse;
|
|
@@ -38,7 +38,9 @@ const initializeFileSystem = async () => {
|
|
|
38
38
|
if (debug) {
|
|
39
39
|
console.log('initializeFileSystem');
|
|
40
40
|
}
|
|
41
|
-
const compilerOptions: ts.CompilerOptions = {
|
|
41
|
+
const compilerOptions: ts.CompilerOptions = {
|
|
42
|
+
lib: ['dom', 'esnext'],
|
|
43
|
+
};
|
|
42
44
|
|
|
43
45
|
// `true` breaks in a Web Worker because
|
|
44
46
|
// this uses `localStorage` under the hood,
|