Closes hyb1996-guest/auto.js3-issues#19765
This commit is contained in:
@@ -67,9 +67,9 @@ public class AutoCompletion {
|
|||||||
if (mModules == null || mAutoCompleteCallback == null)
|
if (mModules == null || mAutoCompleteCallback == null)
|
||||||
return;
|
return;
|
||||||
findStatementOnCursor(line, cursor);
|
findStatementOnCursor(line, cursor);
|
||||||
if (mPropertyPrefill == null && mModuleName == null)
|
|
||||||
return;
|
|
||||||
Module module = getModule(mModuleName);
|
Module module = getModule(mModuleName);
|
||||||
|
if (mPropertyPrefill == null && module == null)
|
||||||
|
return;
|
||||||
List<CodeCompletion> completions = findCodeCompletion(module, mPropertyPrefill);
|
List<CodeCompletion> completions = findCodeCompletion(module, mPropertyPrefill);
|
||||||
CodeCompletions codeCompletions = new CodeCompletions(cursor, completions);
|
CodeCompletions codeCompletions = new CodeCompletions(cursor, completions);
|
||||||
mAutoCompleteCallback.updateCodeCompletion(codeCompletions);
|
mAutoCompleteCallback.updateCodeCompletion(codeCompletions);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
public class DeveloperUtils {
|
public class DeveloperUtils {
|
||||||
|
|
||||||
private static final String PACKAGE_NAME = "com.stardust.scriptdroid";
|
private static final String PACKAGE_NAME = "com.stardust.scriptdroid";
|
||||||
private static final String SIGNATURE = "nPNPcy4Lk/eP6fLvZitP0VPbHdFCbKua77m59vis5fA=";
|
private static final String SIGNATURE = "nPNPcy4Lk/eP6fLvZitP0VPbHdFCbKua77m59vis5fA=\n";
|
||||||
|
|
||||||
public static void ensureRunningPackageNotSelf(@Nullable String runningPackage) {
|
public static void ensureRunningPackageNotSelf(@Nullable String runningPackage) {
|
||||||
if (PACKAGE_NAME.equals(runningPackage)) {
|
if (PACKAGE_NAME.equals(runningPackage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user