mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 16:38:46 -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;
|
||||
|
||||
@@ -7500,6 +7500,8 @@ declare namespace ts.server {
|
||||
resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
|
||||
directoryExists(path: string): boolean;
|
||||
getDirectories(path: string): string[];
|
||||
log(s: string): void;
|
||||
error(s: string): void;
|
||||
private setInternalCompilerOptionsForEmittingJsFiles();
|
||||
/**
|
||||
* Get the errors that dont have any file name associated
|
||||
|
||||
Reference in New Issue
Block a user