mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +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,
|
private readonly _tracer: Tracer,
|
||||||
) {
|
) {
|
||||||
super();
|
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._reader.onData(msg => this.dispatchMessage(msg));
|
||||||
this._childProcess.on('exit', code => this.handleExit(code));
|
this._childProcess.on('exit', code => this.handleExit(code));
|
||||||
this._childProcess.on('error', error => this.handleError(error));
|
this._childProcess.on('error', error => this.handleError(error));
|
||||||
@@ -274,7 +274,7 @@ export class TypeScriptServer extends Disposable {
|
|||||||
public get tsServerLogFile() { return this._tsServerLogFile; }
|
public get tsServerLogFile() { return this._tsServerLogFile; }
|
||||||
|
|
||||||
public write(serverRequest: Proto.Request) {
|
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() {
|
public dispose() {
|
||||||
|
|||||||
Reference in New Issue
Block a user