Fix #261
This commit is contained in:
parent
70d888c8c5
commit
9df9a11c58
2
dsymbol
2
dsymbol
|
@ -1 +1 @@
|
||||||
Subproject commit 1ac138f58fe24d59519a5a92758701e9007d0ad6
|
Subproject commit 1c0db1e40d2fe6118a898cd3b1c788cc3d3cdb50
|
|
@ -842,8 +842,8 @@ void setCompletions(T)(ref AutocompleteResponse response,
|
||||||
if (partial !is null && tokens.length == 0)
|
if (partial !is null && tokens.length == 0)
|
||||||
{
|
{
|
||||||
auto currentSymbols = completionScope.getSymbolsInCursorScope(cursorPosition);
|
auto currentSymbols = completionScope.getSymbolsInCursorScope(cursorPosition);
|
||||||
foreach (s; currentSymbols
|
foreach (s; currentSymbols.filter!(a => isPublicCompletionKind(a.kind)
|
||||||
.filter!(a => a.name.toUpper().startsWith(partial.toUpper())))
|
&& a.name.toUpper().startsWith(partial.toUpper())))
|
||||||
{
|
{
|
||||||
response.completionKinds ~= s.kind;
|
response.completionKinds ~= s.kind;
|
||||||
response.completions ~= s.name.dup;
|
response.completions ~= s.name.dup;
|
||||||
|
|
Loading…
Reference in New Issue