From 1d72ab9e0495c22c871348ddf89cc21110587a65 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Tue, 8 Feb 2022 22:02:10 +0100 Subject: [PATCH] change rmDirSync to rmSync fixes the issue from my comment on https://github.com/coder/vscode/commit/db0490fb86704316975fb3de391cebe4bfcaa1c1#commitcomment-66284504 --- extensions/postinstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/postinstall.js b/extensions/postinstall.js index 547f406af3476..973c3ade6ad9d 100644 --- a/extensions/postinstall.js +++ b/extensions/postinstall.js @@ -20,7 +20,7 @@ function processRoot() { if (!toKeep.has(name)) { const filePath = path.join(root, name); console.log(`Removed ${filePath}`); - fs.rmdirSync(filePath, { recursive: true }); + fs.rmSync(filePath, { recursive: true }); } }