also check the scanner in autocomplete

This commit is contained in:
Basile Burg 2017-06-10 18:54:15 +02:00 committed by Petar Kirov
parent ec6f821100
commit 4906307357
1 changed files with 2 additions and 1 deletions

View File

@ -681,7 +681,7 @@ void setImportCompletions(T)(T tokens, ref AutocompleteResponse response,
found = true;
foreach (string name; dirEntries(p, SpanMode.shallow))
try foreach (string name; dirEntries(p, SpanMode.shallow))
{
import std.path: baseName;
if (name.baseName.startsWith(".#"))
@ -705,6 +705,7 @@ void setImportCompletions(T)(T tokens, ref AutocompleteResponse response,
}
}
}
catch(FileException){}
}
}
if (!found)