Skip to content

Commit

Permalink
JBIDE-29058: fix build after TP update (quarkus-ls 0.17)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Bouchet <[email protected]>
  • Loading branch information
sbouchet committed Oct 9, 2023
1 parent bd8b141 commit ec33b1e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
package org.jboss.tools.quarkus.lsp4e.internal.ls.qute;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletableFuture;
Expand Down Expand Up @@ -269,4 +270,12 @@ public void preferenceChange(PreferenceChangeEvent event) {
getLanguageServer().getWorkspaceService()
.didChangeConfiguration(new DidChangeConfigurationParams(QuteUtils.getQuteSettings()));
}

@Override
public CompletableFuture<Collection<ProjectInfo>> getProjects() {
return CompletableFutures.computeAsync((cancelChecker) -> {
IProgressMonitor monitor = getProgressMonitor(cancelChecker);
return QuteSupportForTemplate.getInstance().getProjects(JDTUtilsImpl.getInstance(), monitor);
});
}
}
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
<quarkus.version>0.25.0</quarkus.version>
<vscode-quarkus.version>v1.9.0</vscode-quarkus.version>
<tycho.scmUrl>scm:git:https://github.com/jbosstools/jbosstools-quarkus.git</tycho.scmUrl>
<quarkus-jdt-site>https://download.jboss.org/jbosstools/vscode/stable/builds/quarkus-jdt/2023-08-08_15-02-58-B236/all/repo/</quarkus-jdt-site>
<qute-jdt-site>https://download.jboss.org/jbosstools/vscode/stable/builds/qute-jdt/2023-08-08_15-02-58-B236/all/repo/</qute-jdt-site>
<lsp4mp-jdt-site>http://download.eclipse.org/lsp4mp/releases/0.8.0/repository/</lsp4mp-jdt-site>
<quarkus-ls.version>0.16.0</quarkus-ls.version>
<lsp4mp-ls.version>0.9.0</lsp4mp-ls.version>
<qute-ls.version>0.16.0</qute-ls.version>
<quarkus-jdt-site>https://download.jboss.org/jbosstools/vscode/stable/builds/quarkus-jdt/2023-10-05_14-34-43-B248/all/repo/</quarkus-jdt-site>
<qute-jdt-site>https://download.jboss.org/jbosstools/vscode/stable/builds/qute-jdt/2023-10-05_14-34-43-B248/all/repo/</qute-jdt-site>
<lsp4mp-jdt-site>https://download.eclipse.org/lsp4mp/releases/0.10.0/repository/</lsp4mp-jdt-site>
<quarkus-ls.version>0.17.0</quarkus-ls.version>
<qute-ls.version>0.17.0</qute-ls.version>
<lsp4mp-ls.version>0.10.0</lsp4mp-ls.version>
<!--
Uncomment only if you need to use non released bits from LSP4MP or Quarkus LS in GA
in case of desynchronization between the projects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.Random;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
Expand All @@ -24,7 +26,7 @@
import org.junit.jupiter.api.Test;

public class CodeProjectWizardControllerTest {
private int counter = 0;
private int counter = new Random().nextInt();

private static QuarkusModel catalog;

Expand Down

0 comments on commit ec33b1e

Please sign in to comment.