Skip to content

Commit 87e388d

Browse files
feat: dont invoke acode service when uninstalling terminal (#2350)
* dont invoke acode service when uninstalling terminal * dont invoke acode service when uninstalling lsp server * feat: use background executor for restore
1 parent 25f86d7 commit 87e388d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/cm/lsp/serverLauncher.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,8 @@ export async function uninstallServer(
849849
message: `Uninstalling ${displayLabel}...`,
850850
loading: () => loading,
851851
});
852-
await runForegroundCommand(command);
852+
//await runForegroundCommand(command);
853+
await runQuickCommand(command);
853854
if (cacheKey) {
854855
checkedCommands.delete(cacheKey);
855856
}

src/plugins/terminal/www/Terminal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ const Terminal = {
507507
echo "ok"
508508
`;
509509

510-
const result = await Executor.execute(cmd);
510+
const result = await Executor.BackgroundExecutor.execute(cmd);
511511
if (result === "ok") {
512512
resolve(result);
513513
} else {
@@ -553,7 +553,7 @@ const Terminal = {
553553
554554
echo "ok"
555555
`;
556-
const result = await Executor.execute(cmd);
556+
const result = await Executor.BackgroundExecutor.execute(cmd);
557557
if (result === "ok") {
558558
resolve(result);
559559
} else {

0 commit comments

Comments
 (0)