mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: Error: ENOTEMPTY
This commit is contained in:
parent
3f2ac2b9b0
commit
6215d15fdd
1 changed files with 1 additions and 4 deletions
|
|
@ -160,10 +160,7 @@ export namespace LSPServer {
|
|||
|
||||
const extractedPath = path.join(Global.Path.bin, "vscode-eslint-main")
|
||||
const finalPath = path.join(Global.Path.bin, "vscode-eslint")
|
||||
|
||||
if (await Bun.file(finalPath).exists()) {
|
||||
await fs.rm(finalPath, { force: true, recursive: true })
|
||||
}
|
||||
await fs.rm(finalPath, { force: true, recursive: true }).catch(() => {})
|
||||
await fs.rename(extractedPath, finalPath)
|
||||
|
||||
await $`npm install`.cwd(finalPath).quiet()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue