We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f6675 commit 27b255fCopy full SHA for 27b255f
src/pages/play/ts.worker.ts
@@ -25,7 +25,10 @@ export class CustomTypeScriptWorker extends TypeScriptWorker {
25
public async getSemanticDiagnostics(fileName: string) {
26
const diagnostics = await super.getSemanticDiagnostics(fileName);
27
const { diagnostics: transpileDiagnostics } = this.transpileLua(fileName);
28
- return [...diagnostics, ...TypeScriptWorker.clearFiles(transpileDiagnostics)];
+ return [
29
+ ...diagnostics,
30
+ ...TypeScriptWorker.clearFiles(transpileDiagnostics.map(diag => ({ ...diag, code: diag.source as any }))),
31
+ ];
32
}
33
34
private transpileLua(fileName: string) {
0 commit comments