Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmundo Lopez Bobeda2019-09-15 08:28:54 -0400
committerEdmundo Lopez Bobeda2019-09-18 15:43:30 -0400
commit18fea729771d00c6bcb68cb78c4413aca90e3b69 (patch)
treef97971ea6f02ebb18773352eb05ecce847b6c230
parent0e76132be5109e8025cb5081c97b1b7a8a4a3d86 (diff)
downloadlsp4e-master.tar.gz
lsp4e-master.tar.xz
lsp4e-master.zip
Bug 550992 - Add support for experimental featuresHEADmaster
Change-Id: I0337f4f20f6c637b453184854cb2c34fbbfe7767 Signed-off-by: Edmundo Lopez Bobeda <edmundo@lopezbobeda.net>
-rw-r--r--org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServerWrapper.java2
-rw-r--r--org.eclipse.lsp4e/src/org/eclipse/lsp4e/server/StreamConnectionProvider.java13
-rw-r--r--target-platforms/target-platform-latest/target-platform-latest.target2
3 files changed, 15 insertions, 2 deletions
diff --git a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServerWrapper.java b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServerWrapper.java
index 7a27db1..db53325 100644
--- a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServerWrapper.java
+++ b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServerWrapper.java
@@ -309,7 +309,7 @@ public class LanguageServerWrapper {
textDocumentClientCapabilities
.setSynchronization(new SynchronizationCapabilities(Boolean.TRUE, Boolean.TRUE, Boolean.TRUE));
initParams.setCapabilities(
- new ClientCapabilities(workspaceClientCapabilities, textDocumentClientCapabilities, null));
+ new ClientCapabilities(workspaceClientCapabilities, textDocumentClientCapabilities, lspStreamProvider.getExperimentalFeaturesPOJO()));
initParams.setClientName(name);
initParams.setInitializationOptions(this.lspStreamProvider.getInitializationOptions(rootURI));
diff --git a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/server/StreamConnectionProvider.java b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/server/StreamConnectionProvider.java
index a16edb8..6d4ce7d 100644
--- a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/server/StreamConnectionProvider.java
+++ b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/server/StreamConnectionProvider.java
@@ -109,6 +109,19 @@ public interface StreamConnectionProvider {
}
/**
+ * Returns an object that describes the experimental features supported
+ * by the client.
+ * @implNote The returned object gets serialized by LSP4J, which itself uses
+ * GSon, so a GSon object can work too.
+ * @since 0.12
+ * @return an object whose fields represent the different experimental features
+ * supported by the client.
+ */
+ public default Object getExperimentalFeaturesPOJO() {
+ return null;
+ }
+
+ /**
* Provides trace level to be set on language server initialization.<br>
* Legal values: "off" | "messages" | "verbose".
*
diff --git a/target-platforms/target-platform-latest/target-platform-latest.target b/target-platforms/target-platform-latest/target-platform-latest.target
index 5e6dced..77c7663 100644
--- a/target-platforms/target-platform-latest/target-platform-latest.target
+++ b/target-platforms/target-platform-latest/target-platform-latest.target
@@ -5,7 +5,7 @@
<unit id="config.a.jre.javase" version="0.0.0"/>
<unit id="org.eclipse.sdk.ide" version="0.0.0"/>
<unit id="org.eclipse.jface.text.tests" version="0.0.0"/>
-<repository location="https://download.eclipse.org/eclipse/updates/4.13-I-builds/"/>
+<repository location="http://download.eclipse.org/eclipse/updates/4.13/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.mylyn.commons.notifications.feature.group" version="0.0.0"/>

Back to the top