From c1dfcea98e66fd9c2c0e71788115388e2b8f87f3 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sat, 22 Dec 2018 14:16:10 +0100 Subject: [PATCH] add a note explaining why imported syms are filtered out. --- src/dcd/server/autocomplete/complete.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dcd/server/autocomplete/complete.d b/src/dcd/server/autocomplete/complete.d index 0399f86..82484c1 100644 --- a/src/dcd/server/autocomplete/complete.d +++ b/src/dcd/server/autocomplete/complete.d @@ -528,6 +528,8 @@ void setCompletions(T)(ref AutocompleteResponse response, { auto currentSymbols = completionScope.getSymbolsInCursorScope(cursorPosition); foreach (s; currentSymbols.filter!(a => isPublicCompletionKind(a.kind) + // TODO: for now since "module.partial" is transformed into ".partial" + // we cant put the imported symbols that should be in the list. && a.kind != CompletionKind.importSymbol && a.kind != CompletionKind.dummy && a.symbolFile == "stdin"