Skip to content

Commit

Permalink
refixing ufcs calltips
Browse files Browse the repository at this point in the history
  • Loading branch information
vushu committed Mar 14, 2023
1 parent 11db391 commit 6c66afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dsymbol/src/dsymbol/ufcs.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/dcd/server/autocomplete/util.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c66afd

Please sign in to comment.