提交 9ffd38a1 编写于 作者: M Matt Bierner

Remove warn form ITypeScriptServiceClient

上级 6a6793e6
......@@ -9,6 +9,7 @@ import * as Proto from './protocol';
import API from './utils/api';
import { TypeScriptServerPlugin } from './utils/plugins';
import { TypeScriptServiceConfiguration } from './utils/configuration';
import Logger from './utils/logger';
export interface ITypeScriptServiceClientHost {
syntaxDiagnosticsReceived(event: Proto.DiagnosticEvent): void;
......@@ -23,8 +24,6 @@ export interface ITypeScriptServiceClient {
asUrl(filepath: string): Uri;
getWorkspaceRootForResource(resource: Uri): string | undefined;
warn(message: string, data?: any): void;
onTsServerStarted: Event<void>;
onProjectLanguageServiceStateChanged: Event<Proto.ProjectLanguageServiceStateEventBody>;
onDidBeginInstallTypings: Event<Proto.BeginInstallTypesEventBody>;
......@@ -32,10 +31,9 @@ export interface ITypeScriptServiceClient {
onTypesInstallerInitializationFailed: Event<Proto.TypesInstallerInitializationFailedEventBody>;
apiVersion: API;
plugins: TypeScriptServerPlugin[];
configuration: TypeScriptServiceConfiguration;
logger: Logger;
execute(command: 'configure', args: Proto.ConfigureRequestArguments, token?: CancellationToken): Promise<Proto.ConfigureResponse>;
execute(command: 'open', args: Proto.OpenRequestArgs, expectedResult: boolean, token?: CancellationToken): Promise<any>;
......
......@@ -128,7 +128,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient
private versionPicker: TypeScriptVersionPicker;
private tracer: Tracer;
private readonly logger: Logger = new Logger();
public readonly logger: Logger = new Logger();
private tsServerLogFile: string | null = null;
private servicePromise: Thenable<cp.ChildProcess> | null;
private lastError: Error | null;
......
......@@ -112,7 +112,7 @@ function createLargeProjectMonitorForProject(item: ExcludeHintItem, client: ITyp
}
});
}).catch(err => {
client.warn(err);
client.logger.warn(err);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册