Skip to content

Commit

Permalink
Update XML LS extension to the latest Lemminx
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Jan 15, 2025
1 parent e2a8eae commit 85f842c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion headless-services/xml-ls-extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public JavaProjectCache(IXMLCommandService commandService, IXMLDocumentProvider

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));
Expand Down

0 comments on commit 85f842c

Please sign in to comment.