Merge branch 'main' into icons

This commit is contained in:
silverwind authored and GitHub committed 2025-11-28 17:05:07 +01:00
commit a7e54b77c0
10 files changed
+484 -471

No files matched your search

+2 -2
View File
@@ -62,9 +62,9 @@ function initLanguages(monaco: Monaco): void {
languagesByExt[extension] = id;
}
if (id === 'typescript') {
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
monaco.typescript.typescriptDefaults.setCompilerOptions({
// this is needed to suppress error annotations in tsx regarding missing --jsx flag.
jsx: monaco.languages.typescript.JsxEmit.Preserve,
jsx: monaco.typescript.JsxEmit.Preserve,
});
}
}
@@ -69,8 +69,8 @@ class Source {
}
}
const sourcesByUrl: Map<string, Source | null> = new Map();
const sourcesByPort: Map<MessagePort, Source | null> = new Map();
const sourcesByUrl = new Map<string, Source | null>();
const sourcesByPort = new Map<MessagePort, Source | null>();
// @ts-expect-error: typescript bug?
self.addEventListener('connect', (e: MessageEvent) => {