Skip to content

Commit 85f842c

Browse files
committed
Update XML LS extension to the latest Lemminx
1 parent e2a8eae commit 85f842c

File tree

3 files changed

+18
-2
lines changed
  • eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons
  • headless-services/xml-ls-extension

3 files changed

+18
-2
lines changed

eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/plugin.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,22 @@
141141
typeId="org.eclipse.lsp4e.commandParameterType">
142142
</commandParameter>
143143
</command>
144+
<command
145+
id="java.execute.workspaceCommand"
146+
name="Execute Java Command in Workspace">
147+
<commandParameter
148+
id="org.eclipse.lsp4e.path.param"
149+
name="Resource Path (unnecessary, only to make lsp4e happy)"
150+
optional="true"
151+
typeId="org.eclipse.lsp4e.pathParameterType">
152+
</commandParameter>
153+
<commandParameter
154+
id="org.eclipse.lsp4e.command.param"
155+
name="Command id (unnecessary, only to make lsp4e happy)"
156+
optional="true"
157+
typeId="org.eclipse.lsp4e.commandParameterType">
158+
</commandParameter>
159+
</command>
144160
</extension>
145161
<extension
146162
point="org.eclipse.e4.ui.css.swt.theme">

headless-services/xml-ls-extension/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<properties>
1717
<dependencies.version>${project.version}</dependencies.version>
18-
<lsp4xml.version>0.14.1</lsp4xml.version>
18+
<lsp4xml.version>0.29.0</lsp4xml.version>
1919
</properties>
2020

2121
<repositories>

headless-services/xml-ls-extension/src/main/java/org/springframework/ide/vscode/xml/JavaProjectCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public JavaProjectCache(IXMLCommandService commandService, IXMLDocumentProvider
129129

130130
void start() {
131131
// Register handler for the classpath change callback command
132-
commandService.registerCommand(callbackCommandId, (params, cancelChecker) -> handleClasspathChanged(params));
132+
commandService.registerCommand(callbackCommandId, (params, sharedSettings, cancelChecker) -> handleClasspathChanged(params));
133133

134134
// Register classpath listener by executing the command below
135135
final ExecuteCommandParams execCmdParams = new ExecuteCommandParams(JAVA_EXECUTE_WORKSPACE_COMMAND, Arrays.asList("sts.java.addClasspathListener", callbackCommandId, true));

0 commit comments

Comments
 (0)