Skip to content

Commit

Permalink
Update tsWorker.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlosamouco committed Apr 10, 2024
1 parent 8503aef commit 75aee8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/language/typescript/tsWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
if (fileNameIsLib(fileName)) {
return { outputFiles: [], emitSkipped: true };
}
return this._languageService.getEmitOutput(fileName);
const emitOutput = this._languageService.getEmitOutput(fileName);
emitOutput.diagnostics = TypeScriptWorker.clearFiles(diagnostics);

Check failure on line 409 in src/language/typescript/tsWorker.ts

View workflow job for this annotation

GitHub Actions / CI

Property 'diagnostics' does not exist on type 'EmitOutput'.

Check failure on line 409 in src/language/typescript/tsWorker.ts

View workflow job for this annotation

GitHub Actions / CI

Cannot find name 'diagnostics'.
return emitOutput;
}

async getCodeFixesAtPosition(
Expand Down

0 comments on commit 75aee8c

Please sign in to comment.