diff --git a/src/ConfigurationManager.ts b/src/ConfigurationManager.ts index b6fd1568..307f913c 100644 --- a/src/ConfigurationManager.ts +++ b/src/ConfigurationManager.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import execa from "execa"; +import * as execa from "execa"; import * as glob from "glob"; import * as path from "path"; import * as portfinder from "portfinder"; @@ -400,7 +400,7 @@ export class ConfigurationManager implements Disposable { if (username && apiKey) { parameters.set("username", username); parameters.set("apiKey", apiKey); - } + } } // Make sure disabled rules and disabled categories do not contain spaces const CONFIG_DISABLED_RULES = "languageTool.disabledRules"; @@ -486,7 +486,7 @@ export class ConfigurationManager implements Disposable { Constants.EXTENSION_OUTPUT_CHANNEL.appendLine( "Starting managed service.", ); - (this.process = execa("java", args)).catch( + (this.process = execa.execa("java", args)).catch( (err: execa.ExecaError) => { if (err.isCanceled) { Constants.EXTENSION_OUTPUT_CHANNEL.appendLine( @@ -503,11 +503,11 @@ export class ConfigurationManager implements Disposable { } }, ); - this.process.stderr.addListener("data", (data) => { + 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) => { + this.process.stdout.addListener("data", (data: string) => { Constants.EXTENSION_OUTPUT_CHANNEL.appendLine(data); }); this.serviceUrl = this.findServiceUrl(this.getServiceType());