Supress potential null errors related to updated @types/node

This commit is contained in:
Matt Bierner
2019-05-17 16:14:24 -07:00
parent 49de62f5c9
commit b1aad4b755

View File

@@ -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() {