diff --git a/src/ConfigurationManager.ts b/src/ConfigurationManager.ts index 307f913c..7db70235 100644 --- a/src/ConfigurationManager.ts +++ b/src/ConfigurationManager.ts @@ -18,7 +18,7 @@ import * as execa from "execa"; import * as glob from "glob"; import * as path from "path"; import * as portfinder from "portfinder"; -import { URL } from "url"; +// import { URL } from "url"; import { commands, ConfigurationChangeEvent, @@ -503,11 +503,11 @@ export class ConfigurationManager implements Disposable { } }, ); - this.process.stderr.addListener("data", (data: string) => { + this.process.stderr?.addListener("data", (data: string) => { Constants.EXTENSION_OUTPUT_CHANNEL.appendLine(data); Constants.EXTENSION_OUTPUT_CHANNEL.show(true); }); - this.process.stdout.addListener("data", (data: string) => { + this.process.stdout?.addListener("data", (data: string) => { Constants.EXTENSION_OUTPUT_CHANNEL.appendLine(data); }); this.serviceUrl = this.findServiceUrl(this.getServiceType());