We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9739d6 commit 2a30b1dCopy full SHA for 2a30b1d
1 file changed
client/src/addon_manager/models/addon.ts
@@ -328,11 +328,18 @@ export class Addon {
328
for (const folder of vscode.workspace.workspaceFolders ?? []) {
329
await this.disable(folder, true);
330
}
331
- const moduleURI = vscode.Uri.joinPath(this.uri, "module");
332
- await filesystem.deleteFile(moduleURI, {
333
- recursive: true,
334
- useTrash: false,
+ const files =
+ (await filesystem.readDirectory(
+ vscode.Uri.joinPath(this.uri, "module"),
+ { depth: 1 }
335
+ )) ?? [];
336
+ files.map((f) => {
337
+ return filesystem.deleteFile(f.uri, {
338
+ recursive: true,
339
+ useTrash: false,
340
+ });
341
});
342
+ await Promise.all(files);
343
localLogger.info(`Uninstalled ${this.name}`);
344
this.#installed = false;
345
this.setLock(false);
0 commit comments