Update XML LS extension to the latest Lemminx

This commit is contained in:
aboyko
2025-01-15 14:45:39 -05:00
parent e2a8eae804
commit 85f842cb5f
3 changed files with 18 additions and 2 deletions

View File

@@ -141,6 +141,22 @@
typeId="org.eclipse.lsp4e.commandParameterType">
</commandParameter>
</command>
<command
id="java.execute.workspaceCommand"
name="Execute Java Command in Workspace">
<commandParameter
id="org.eclipse.lsp4e.path.param"
name="Resource Path (unnecessary, only to make lsp4e happy)"
optional="true"
typeId="org.eclipse.lsp4e.pathParameterType">
</commandParameter>
<commandParameter
id="org.eclipse.lsp4e.command.param"
name="Command id (unnecessary, only to make lsp4e happy)"
optional="true"
typeId="org.eclipse.lsp4e.commandParameterType">
</commandParameter>
</command>
</extension>
<extension
point="org.eclipse.e4.ui.css.swt.theme">

View File

@@ -15,7 +15,7 @@
<properties>
<dependencies.version>${project.version}</dependencies.version>
<lsp4xml.version>0.14.1</lsp4xml.version>
<lsp4xml.version>0.29.0</lsp4xml.version>
</properties>
<repositories>

View File

@@ -129,7 +129,7 @@ class JavaProjectCache implements IJavaProjectProvider {
void start() {
// Register handler for the classpath change callback command
commandService.registerCommand(callbackCommandId, (params, cancelChecker) -> handleClasspathChanged(params));
commandService.registerCommand(callbackCommandId, (params, sharedSettings, cancelChecker) -> handleClasspathChanged(params));
// Register classpath listener by executing the command below
final ExecuteCommandParams execCmdParams = new ExecuteCommandParams(JAVA_EXECUTE_WORKSPACE_COMMAND, Arrays.asList("sts.java.addClasspathListener", callbackCommandId, true));