Skip to content

Commit

Permalink
fix: update use of execa
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlday committed Mar 2, 2024
1 parent 9ec67e0 commit c9a6af0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ConfigurationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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(
Expand All @@ -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());
Expand Down

0 comments on commit c9a6af0

Please sign in to comment.