diff --git a/dsymbol/src/dsymbol/ufcs.d b/dsymbol/src/dsymbol/ufcs.d index 51ecce6f..3425acc1 100644 --- a/dsymbol/src/dsymbol/ufcs.d +++ b/dsymbol/src/dsymbol/ufcs.d @@ -311,6 +311,7 @@ bool isCallableWithArg(DSymbol* incomingSymbol, const(DSymbol)* beforeDotType, b .functionParameters.front.type.name) || matchAliasThis(beforeDotType, incomingSymbol, recursionDepth)) { + incomingSymbol.kind = CompletionKind.ufcsName; return true; } diff --git a/src/dcd/server/autocomplete/util.d b/src/dcd/server/autocomplete/util.d index e8e435d8..8bb84d3a 100644 --- a/src/dcd/server/autocomplete/util.d +++ b/src/dcd/server/autocomplete/util.d @@ -614,7 +614,7 @@ bool isUdaExpression(T)(ref T tokens) AutocompleteResponse.Completion makeSymbolCompletionInfo(const DSymbol* symbol, char kind) { string definition; - if ((kind == CompletionKind.variableName || kind == CompletionKind.ufcsName || kind == CompletionKind.memberVariableName) && symbol.type) + if ((kind == CompletionKind.variableName || kind == CompletionKind.memberVariableName) && symbol.type) definition = symbol.type.name ~ ' ' ~ symbol.name; else if (kind == CompletionKind.enumMember) definition = symbol.name; // TODO: add enum value to definition string