add sublime text plugin support
This commit is contained in:
@@ -40,8 +40,4 @@ public class ImportIntentActivity extends BaseActivity {
|
||||
finish();
|
||||
}
|
||||
|
||||
private void startMainActivity() {
|
||||
|
||||
finish();
|
||||
}
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user