Skip to content

Commit 8219188

Browse files
committed
Remove CommandExecutor and use the one from lsp4e
1 parent 2e71167 commit 8219188

File tree

3 files changed

+9
-177
lines changed

3 files changed

+9
-177
lines changed

org.eclipse.wildwebdeveloper.xml/META-INF/MANIFEST.MF

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Require-Bundle: org.eclipse.tm4e.registry;bundle-version="0.3.0",
1818
org.eclipse.ui.ide;bundle-version="3.14.0",
1919
org.eclipse.ui.genericeditor;bundle-version="1.0.0",
2020
org.eclipse.core.net;bundle-version="1.3.0",
21-
org.eclipse.lsp4j.jsonrpc
21+
org.eclipse.lsp4j.jsonrpc,
22+
org.eclipse.text
2223
Bundle-ActivationPolicy: lazy
2324
Bundle-Activator: org.eclipse.wildwebdeveloper.xml.internal.Activator
2425
Export-Package: org.eclipse.wildwebdeveloper.xml;x-friends:="org.eclipse.m2e.editor.lemminx"

org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/CommandExecutor.java

Lines changed: 0 additions & 168 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
package org.eclipse.wildwebdeveloper.xml.internal;
22

3-
import java.util.List;
43
import java.util.concurrent.CompletableFuture;
54

65
import org.eclipse.lsp4e.LanguageClientImpl;
6+
import org.eclipse.lsp4e.command.CommandExecutor;
7+
import org.eclipse.lsp4j.Command;
78
import org.eclipse.lsp4j.ExecuteCommandParams;
89

910
@SuppressWarnings("restriction")
1011
public class XmlLanguageClientImpl extends LanguageClientImpl implements XMLLanguageClient{
11-
12-
private CommandExecutor commandExecutor = new CommandExecutor();
13-
12+
1413
public CompletableFuture<Object> executeClientCommand(ExecuteCommandParams params) {
15-
String id = params.getCommand();
16-
List<Object> args = params.getArguments();
17-
return commandExecutor.executeClientCommand(id, args.toArray());
14+
Command cmd = new Command();
15+
cmd.setCommand(params.getCommand());
16+
cmd.setArguments(params.getArguments());
17+
return CommandExecutor.executeCommand(cmd, null, null);
1818
}
1919

20-
2120
}

0 commit comments

Comments
 (0)