File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
client/src/addon_manager/models Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -328,11 +328,18 @@ export class Addon {
328
328
for ( const folder of vscode . workspace . workspaceFolders ?? [ ] ) {
329
329
await this . disable ( folder , true ) ;
330
330
}
331
- const moduleURI = vscode . Uri . joinPath ( this . uri , "module" ) ;
332
- await filesystem . deleteFile ( moduleURI , {
333
- recursive : true ,
334
- useTrash : false ,
331
+ const files =
332
+ ( await filesystem . readDirectory (
333
+ vscode . Uri . joinPath ( this . uri , "module" ) ,
334
+ { depth : 1 }
335
+ ) ) ?? [ ] ;
336
+ files . map ( ( f ) => {
337
+ return filesystem . deleteFile ( f . uri , {
338
+ recursive : true ,
339
+ useTrash : false ,
340
+ } ) ;
335
341
} ) ;
342
+ await Promise . all ( files ) ;
336
343
localLogger . info ( `Uninstalled ${ this . name } ` ) ;
337
344
this . #installed = false ;
338
345
this . setLock ( false ) ;
You can’t perform that action at this time.
0 commit comments