提交 b1aad4b7 编写于 作者: M Matt Bierner

Supress potential null errors related to updated @types/node

上级 49de62f5
......@@ -254,7 +254,7 @@ export class TypeScriptServer extends Disposable {
private readonly _tracer: Tracer,
) {
super();
this._reader = this._register(new Reader<Proto.Response>(this._childProcess.stdout));
this._reader = this._register(new Reader<Proto.Response>(this._childProcess.stdout!));
this._reader.onData(msg => this.dispatchMessage(msg));
this._childProcess.on('exit', code => this.handleExit(code));
this._childProcess.on('error', error => this.handleError(error));
......@@ -274,7 +274,7 @@ export class TypeScriptServer extends Disposable {
public get tsServerLogFile() { return this._tsServerLogFile; }
public write(serverRequest: Proto.Request) {
this._childProcess.stdin.write(JSON.stringify(serverRequest) + '\r\n', 'utf8');
this._childProcess.stdin!.write(JSON.stringify(serverRequest) + '\r\n', 'utf8');
}
public dispose() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册