add sublime text plugin support

This commit is contained in:
hyb1996
2017-05-11 17:06:37 +08:00
parent 4f25582ce5
commit b12e26b797
51 changed files with 490 additions and 100 deletions

View File

@@ -40,8 +40,4 @@ public class ImportIntentActivity extends BaseActivity {
finish();
}
private void startMainActivity() {
finish();
}
}

View File

@@ -44,7 +44,11 @@ public class RunIntentActivity extends Activity {
source = new StringScriptSource(script);
} else if (path != null && new PathChecker(this).checkAndToastError(path)) {
ScriptSource fileScriptSource = new FileScriptSource(path);
source = new SequenceScriptSource(fileScriptSource.getName(), new StringScriptSource(script), fileScriptSource);
if (script != null) {
source = new SequenceScriptSource(fileScriptSource.getName(), new StringScriptSource(script), fileScriptSource);
} else {
source = fileScriptSource;
}
directoryPath = new File(path).getParent();
}
if (source != null) {