Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 7386c17

Browse files
author
Winston Liu
authored
Merge pull request #105 from appelgriebsch/feat/enable-signature-help
enable signature-help on java language server
2 parents 37561eb + b28531a commit 7386c17

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const {
1111
removeUnusedImportProvider
1212
} = actionProviders
1313

14-
const serverDownloadUrl = 'http://download.eclipse.org/jdtls/milestones/0.14.0/jdt-language-server-0.14.0-201802282111.tar.gz'
15-
const serverDownloadSize = 35873467
16-
const serverLauncher = '/plugins/org.eclipse.equinox.launcher_1.5.0.v20180119-0753.jar'
14+
const serverDownloadUrl = 'http://download.eclipse.org/jdtls/milestones/0.39.0/jdt-language-server-0.39.0-201905150127.tar.gz'
15+
const serverDownloadSize = 39070941
16+
const serverLauncher = '/plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar'
1717
const minJavaRuntime = 1.8
1818
const bytesToMegabytes = 1024 * 1024
1919

@@ -205,6 +205,11 @@ class JavaLanguageClient extends AutoLanguageClient {
205205
params.initializationOptions = {};
206206
}
207207
params.initializationOptions.bundles = this.collectJavaExtensions();
208+
params.initializationOptions.settings = {
209+
java: {
210+
"java.signatureHelp.enabled": true
211+
}
212+
}
208213
return params;
209214
}
210215

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@
8787
"0.1.0": "consumeDatatip"
8888
}
8989
},
90+
"signature-help": {
91+
"versions": {
92+
"0.1.0": "consumeSignatureHelp"
93+
}
94+
},
9095
"status-bar": {
9196
"versions": {
9297
"^1.0.0": "consumeStatusBar"

0 commit comments

Comments
 (0)