hyb1996
2018-02-04 14:37:25 +08:00
parent 3b398ec732
commit 9a64b1ef2b
2 changed files with 3 additions and 3 deletions

View File

@@ -67,9 +67,9 @@ public class AutoCompletion {
if (mModules == null || mAutoCompleteCallback == null)
return;
findStatementOnCursor(line, cursor);
if (mPropertyPrefill == null && mModuleName == null)
return;
Module module = getModule(mModuleName);
if (mPropertyPrefill == null && module == null)
return;
List<CodeCompletion> completions = findCodeCompletion(module, mPropertyPrefill);
CodeCompletions codeCompletions = new CodeCompletions(cursor, completions);
mAutoCompleteCallback.updateCodeCompletion(codeCompletions);