mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-22 11:19:32 +00:00
Supress potential null errors related to updated @types/node
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user