summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-06 19:02:36 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-06 19:02:36 -0800
commitde4d59994fdd4fc6433c0b832f27c7245116184a (patch)
treeb888614e9d7a6c1a3fbe43158b8550b14ea615ae
parentf27ce43c368439a61dcf6493c20602cf01488571 (diff)
downloadjava-language-server-de4d59994fdd4fc6433c0b832f27c7245116184a.zip
Display parameters differently than local variables
-rw-r--r--.vscode/settings.json1
-rw-r--r--src/main/java/org/javacs/JavaLanguageServer.java4
2 files changed, 3 insertions, 2 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
index f6a71b6..1dca644 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -19,5 +19,6 @@
},
"java.testMethod": ["mvn", "test", "-Dtest=${class}#${method}"],
"java.testClass": ["mvn", "test", "-Dtest=${class}"],
+ // "typescript.tsserver.trace": "verbose",
// "java.trace.server": "verbose",
} \ No newline at end of file
diff --git a/src/main/java/org/javacs/JavaLanguageServer.java b/src/main/java/org/javacs/JavaLanguageServer.java
index 1029d73..ea352f0 100644
--- a/src/main/java/org/javacs/JavaLanguageServer.java
+++ b/src/main/java/org/javacs/JavaLanguageServer.java
@@ -299,7 +299,7 @@ class JavaLanguageServer extends LanguageServer {
case ENUM_CONSTANT:
return CompletionItemKind.EnumMember;
case EXCEPTION_PARAMETER:
- return CompletionItemKind.Variable;
+ return CompletionItemKind.Property;
case FIELD:
return CompletionItemKind.Field;
case STATIC_INIT:
@@ -314,7 +314,7 @@ class JavaLanguageServer extends LanguageServer {
case PACKAGE:
return CompletionItemKind.Module;
case PARAMETER:
- return CompletionItemKind.Variable;
+ return CompletionItemKind.Property;
case RESOURCE_VARIABLE:
return CompletionItemKind.Variable;
case TYPE_PARAMETER: