Skip to content

Commit 911ed4c

Browse files
committed
hotfix to clean up old sidecar version
1 parent 6cd9d0f commit 911ed4c

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "CodeStory: SOTA SWE",
44
"publisher": "codestoryai",
55
"description": "Codestory's extension for SOTA agentic editing",
6-
"version": "0.0.9",
6+
"version": "0.0.10",
77
"private": true,
88
"engines": {
99
"vscode": "^1.84.0"
@@ -265,4 +265,4 @@
265265
}
266266
}
267267
}
268-
}
268+
}

src/utilities/setupSidecarBinary.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,12 @@ export async function startSidecarBinary(
248248

249249
console.log('will download sidecar binary');
250250

251-
// First, check if the server is already downloaded
251+
try {
252+
await fs.promises.rm(sidecarDestination, { recursive: true, force: true });
253+
console.log(`Cleaned up old sidecar at ${sidecarDestination} successfully!`);
254+
} catch (err) {
255+
console.error(`Error while deleting ${sidecarDestination}:`, err);
256+
}
252257

253258
if (panelProvider.view?.webview) {
254259
panelProvider.view.webview.postMessage({

0 commit comments

Comments
 (0)