Skip to content

Commit 400b0bc

Browse files
committed
Don't add () to Something::auto|
1 parent 5ad7c38 commit 400b0bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/org/javacs/Completions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ private Stream<CompletionItem> completionItem(Element e) {
770770
item.setKind(CompletionItemKind.Method);
771771
item.setLabel(name);
772772
item.setDetail(Hovers.methodSignature(method, true, false));
773-
item.setInsertText(name + "($0)");
773+
if (context != CursorContext.Reference) item.setInsertText(name + "($0)");
774774
item.setInsertTextFormat(InsertTextFormat.Snippet);
775775
item.setCommand(TRIGGER_SIGNATURE_HELP);
776776
item.setFilterText(name);

0 commit comments

Comments
 (0)