Skip to content

Commit

Permalink
fix: add quotation marks around jar file in GoogleJavaFormatterSync.ts
Browse files Browse the repository at this point in the history
fix regression

fixes #4
  • Loading branch information
JoseVSeb committed Feb 10, 2024
1 parent a39a341 commit efff316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleJavaFormatterSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class GoogleJavaFormatterSync implements IGoogleJavaFormatter {
public format(text: string, range?: [number, number]): Promise<string> {
return new Promise<string>((resolve, reject) => {
try {
let command = `java -jar ${this.config.jarUri.fsPath}`;
let command = `java -jar "${this.config.jarUri.fsPath}"`;

if (this.config.extra) {
command += ` ${this.config.extra}`;
Expand Down

0 comments on commit efff316

Please sign in to comment.