Adopt JDT LS 1.34.0 by the JDT LS extension

This commit is contained in:
aboyko
2024-04-14 14:25:18 -04:00
parent 5630ad21ea
commit dbb8898e0f
4 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>

View File

@@ -13,7 +13,8 @@ Require-Bundle: org.eclipse.jdt.ls.core,
org.springframework.tooling.jdt.ls.commons,
com.google.guava,
org.eclipse.lsp4j,
org.eclipse.lsp4j.jsonrpc
org.eclipse.lsp4j.jsonrpc,
org.eclipse.jdt.core.manipulation
Import-Package: com.google.gson;version="2.7.0",
com.google.gson.annotations;version="2.7.0",
com.google.gson.reflect;version="2.7.0",

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2023 Pivotal, Inc.
* Copyright (c) 2018, 2024 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -16,8 +16,8 @@ import java.util.Map;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.internal.ui.viewsupport.CoreJavaElementLinks;
import org.eclipse.jdt.ls.core.internal.IDelegateCommandHandler;
import org.eclipse.jdt.ls.core.internal.javadoc.JavaElementLinks;
import org.springframework.tooling.jdt.ls.commons.java.JavaData;
public class JavadocHoverLinkHandler implements IDelegateCommandHandler {
@@ -34,7 +34,7 @@ public class JavadocHoverLinkHandler implements IDelegateCommandHandler {
if (element != null) {
// Bug in JDT server one '(' not encoded while everything else in the query is
// encoded
return JavaElementLinks.createURI(null, element).replace("(", "%28");
return CoreJavaElementLinks.createURI(null, element).replace("(", "%28");
}
} catch (Exception e) {
JdtLsExtensionPlugin.getInstance().getLog().error("Failed to compute java data for " + bindingKey + " in project " + uri, e);

View File

@@ -45,7 +45,7 @@
</modules>
<properties>
<tycho-version>4.0.4</tycho-version>
<tycho-version>4.0.7</tycho-version>
<!-- Signing -->
<signing.skip>true</signing.skip>
@@ -97,14 +97,14 @@
<repository>
<id>eclipse-2023-09</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/2023-09</url>
<url>https://download.eclipse.org/releases/2024-03</url>
</repository>
<repository>
<id>JDT.LS</id>
<layout>p2</layout>
<!-- <url>${jdt.ls.updatesite}</url> -->
<url>https://download.eclipse.org/jdtls/milestones/1.17.0/repository/</url>
<url>https://download.eclipse.org/jdtls/milestones/1.34.0/repository/</url>
<!-- <url>https://download.eclipse.org/jdtls/snapshots/repository/latest/</url> -->
<!-- The latest JDT LS requires a JDK 17, so we need to run builds on a JDK 17 and raise the minimum level to JDK 17 -->
<!-- In order to avoid this for the 2022-06-based release, I set the JDK LS version here to the latest milestone that does NOT require JDK 17 yet -->