Skip to content

Commit e328159

Browse files
committed
Merge branch 'master' of https://github.com/Hackerpilot/DCD
2 parents faac703 + 435ac15 commit e328159

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/autocomplete.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,8 @@ void setImportCompletions(T)(T tokens, ref AutocompleteResponse response)
861861

862862
foreach (string name; dirEntries(p, SpanMode.shallow))
863863
{
864+
import std.path: baseName;
865+
if (name.baseName.startsWith(".#")) continue;
864866
if (isFile(name) && (name.endsWith(".d") || name.endsWith(".di")))
865867
{
866868
response.completions ~= name.baseName(".d").baseName(".di");

0 commit comments

Comments
 (0)