fix(instances): streamline instance stopping process and error handling

This commit is contained in:
aayurt 2026-06-13 23:09:09 +05:45
parent 4a1d53bf2d
commit 8cf6b03761

View file

@ -720,14 +720,11 @@ async function stopInstance(id: string) {
if (!instance) return
releaseInstanceResources(id)
try {
await serverApi.deleteWorkspace(id)
} catch (error) {
log.error("Failed to stop workspace", error)
}
removeInstance(id)
serverApi.deleteWorkspace(id).catch((error) => {
log.error("Failed to stop workspace", error)
})
}
async function fetchLspStatus(instanceId: string): Promise<LspStatus[] | undefined> {