mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-21 21:01:43 +08:00
Closes hyb1996-guest/auto.js3-issues#19765
This commit is contained in:
parent
3b398ec732
commit
9a64b1ef2b
@ -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);
|
||||
|
||||
@ -22,7 +22,7 @@ import java.util.List;
|
||||
public class DeveloperUtils {
|
||||
|
||||
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) {
|
||||
if (PACKAGE_NAME.equals(runningPackage)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user