From bd85d0ed420b792eebdd81f88fca503e028c9565 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 21 Dec 2020 14:44:26 +0100 Subject: refactor: rewrite lsp to be async (#8727) Co-authored-by: Luca Casonato --- cli/tsc/99_main_compiler.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cli/tsc') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 0be0fdc2c..9b08dee93 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -492,10 +492,7 @@ delete Object.prototype.__proto__; request.specifier, ts.ScriptTarget.ESNext, ); - return core.jsonOpSync( - "op_set_asset", - { text: sourceFile && sourceFile.text }, - ); + return respond(id, sourceFile && sourceFile.text); } case "getSemanticDiagnostics": { const diagnostics = languageService.getSemanticDiagnostics( -- cgit v1.2.3