add error\trace message that should be exposed by the host

This commit is contained in:
Vladimir Matveev
2014-12-06 21:23:54 -08:00
parent 98750ca7b4
commit 80c67db75b
2 changed files with 10 additions and 0 deletions

View File

@@ -865,6 +865,8 @@ module ts {
export interface Logger {
log(s: string): void;
trace(s: string): void;
error(s: string): void;
}
//

View File

@@ -341,6 +341,14 @@ module ts {
this.shimHost.log(s);
}
public trace(s: string): void {
this.shimHost.trace(s);
}
public error(s: string): void {
this.shimHost.error(s);
}
public getCompilationSettings(): CompilerOptions {
var settingsJson = this.shimHost.getCompilationSettings();
if (settingsJson == null || settingsJson == "") {