Also generate ctor calltips for Struct/Class symbols with a callTip
This commit is contained in:
parent
5c529f300d
commit
c2361f5c3e
|
|
@ -614,10 +614,14 @@ void setCompletions(T)(ref AutocompleteResponse response,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (symbols[0].kind == CompletionKind.structName
|
||||
|| symbols[0].kind == CompletionKind.className)
|
||||
{
|
||||
|
||||
auto constructor = symbols[0].getPartsByName(CONSTRUCTOR_SYMBOL_NAME);
|
||||
|
||||
if (constructor.length == 0)
|
||||
{
|
||||
// Build a call tip out of the struct fields
|
||||
|
|
@ -634,7 +638,7 @@ void setCompletions(T)(ref AutocompleteResponse response,
|
|||
goto setCallTips;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setCallTips:
|
||||
response.completionType = CompletionType.calltips;
|
||||
foreach (symbol; symbols)
|
||||
|
|
|
|||
Loading…
Reference in New Issue