Skip to content

Commit 4b0ae52

Browse files
committed
fix: enable workspace/executeCommand in the Syntax language client
Signed-off-by: Fred Bricon <[email protected]>
1 parent 813f9e9 commit 4b0ae52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/syntaxLanguageClient.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ import { ClientErrorHandler } from "./clientErrorHandler";
88
import { ClientStatus } from "./extension.api";
99
import { logger } from "./log";
1010
import { OutputInfoCollector } from "./outputInfoCollector";
11-
import { StatusNotification } from "./protocol";
11+
import { ExecuteClientCommandRequest, StatusNotification } from "./protocol";
1212
import { RequirementsData } from "./requirements";
1313
import { ServerMode } from "./settings";
1414
import { snippetCompletionProvider } from "./snippetCompletionProvider";
1515
import { getJavaConfig } from "./utils";
1616
import { DEBUG } from "./javaServerStarter";
1717
import { TracingLanguageClient } from "./TracingLanguageClient";
18+
import { commands } from "vscode";
1819

1920
const extensionName = "Language Support for Java (Syntax Server)";
2021

@@ -90,6 +91,9 @@ export class SyntaxLanguageClient {
9091
apiManager.fireDidServerModeChange(ServerMode.lightWeight);
9192
}
9293
});
94+
this.languageClient.onRequest(ExecuteClientCommandRequest.type, (params) => {
95+
return commands.executeCommand(params.command, ...params.arguments);
96+
});
9397
}
9498
}
9599

0 commit comments

Comments
 (0)