mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
class Project: implement log and error from LanguageServiceHost (#21635)
* class Project: implement `log` and `error` from `LanguageServiceHost` * Update API baseline
This commit is contained in:
@@ -428,6 +428,14 @@ namespace ts.server {
|
||||
this.projectService.logger.info(s);
|
||||
}
|
||||
|
||||
log(s: string) {
|
||||
this.writeLog(s);
|
||||
}
|
||||
|
||||
error(s: string) {
|
||||
this.projectService.logger.msg(s, Msg.Err);
|
||||
}
|
||||
|
||||
private setInternalCompilerOptionsForEmittingJsFiles() {
|
||||
if (this.projectKind === ProjectKind.Inferred || this.projectKind === ProjectKind.External) {
|
||||
this.compilerOptions.noEmitForJsFiles = true;
|
||||
|
||||
Reference in New Issue
Block a user