This commit is contained in:
ryuukk 2023-02-01 19:16:59 +01:00
parent 855250f6f0
commit 674f72750a
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,7 @@ ScopeSymbolPair generateAutocompleteTrees(const(Token)[] tokens,
void tryResolve(Scope* sc, ref ModuleCache cache) void tryResolve(Scope* sc, ref ModuleCache cache)
{ {
if (sc is null) return;
auto symbols = sc.symbols; auto symbols = sc.symbols;
foreach (item; symbols) foreach (item; symbols)
{ {
@ -77,6 +78,7 @@ ScopeSymbolPair generateAutocompleteTrees(const(Token)[] tokens,
} }
else else
{ {
if (part.symbolFile == "stdin") return;
auto moduleSymbol = cache.getModuleSymbol(part.symbolFile); auto moduleSymbol = cache.getModuleSymbol(part.symbolFile);
auto first = moduleSymbol.getFirstPartNamed(typeName); auto first = moduleSymbol.getFirstPartNamed(typeName);
if (first !is null) if (first !is null)

View File

@ -247,6 +247,7 @@ do
else else
{ {
// store the callTip, that'll be useful to resolve the type later // store the callTip, that'll be useful to resolve the type later
if (symbol.callTip is null)
symbol.callTip = istring(part); symbol.callTip = istring(part);
return; return;
} }