Skip to content

Commit 98b206f

Browse files
author
Ajit Kumar
committed
fix: update BASE_URL to production and enhance plugin loading feedback
1 parent 5aed795 commit 98b206f

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/cm/lsp/serverLauncher.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,8 @@ export async function ensureServerRunning(
10871087
if (!alreadyInformed){
10881088
alreadyInformed = true;
10891089
alert(strings?.error, message);
1090+
}else{
1091+
toast(message);
10901092
}
10911093

10921094
const unavailable: LspError = new Error(message);

src/lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const BASE_URL = "https://dev.acode.app";
1+
const BASE_URL = "https://acode.app";
22
let hasPro = false;
33

44
export default {

src/lib/installPlugin.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,14 @@ export default async function installPlugin(
7272
pluginUrl.startsWith("content:")
7373
) {
7474
// Use fsOperation for Acode registry URL
75-
plugin = await fsOperation(pluginUrl).readFile();
75+
plugin = await fsOperation(pluginUrl).readFile(
76+
undefined,
77+
(loaded, total) => {
78+
loaderDialog.setMessage(
79+
`${strings.loading} ${((loaded / total) * 100).toFixed(2)}%`,
80+
);
81+
},
82+
);
7683
} else {
7784
// cordova http plugin for others
7885
plugin = await new Promise((resolve, reject) => {

src/plugins/system/android/com/foxdebug/system/System.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public void initialize(CordovaInterface cordova, CordovaWebView webView) {
138138
@Override
139139
public void run() {
140140
setNativeContextMenuDisabled(false);
141+
new SoftInputAssist(activity);
141142
}
142143
}
143144
);

0 commit comments

Comments
 (0)