diff options
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index a78b85203..0be0fdc2c 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -487,6 +487,16 @@ delete Object.prototype.__proto__; compilationSettings = options; return respond(id, true); } + case "getAsset": { + const sourceFile = host.getSourceFile( + request.specifier, + ts.ScriptTarget.ESNext, + ); + return core.jsonOpSync( + "op_set_asset", + { text: sourceFile && sourceFile.text }, + ); + } case "getSemanticDiagnostics": { const diagnostics = languageService.getSemanticDiagnostics( request.specifier, |