diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-12-21 14:44:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 08:44:26 -0500 |
commit | bd85d0ed420b792eebdd81f88fca503e028c9565 (patch) | |
tree | d6f8d5baf4c3c0d760bea2b6b221189674d2e54b /cli/tsc | |
parent | 3078fcf55a8aa04d26316ab353d84f2c9512bd47 (diff) |
refactor: rewrite lsp to be async (#8727)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 5 |
1 files changed, 1 insertions, 4 deletions
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( |