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 2ca5c03 commit 20e6c48Copy full SHA for 20e6c48
client/src/addon_manager/models/addon.ts
@@ -192,10 +192,10 @@ export class Addon {
192
);
193
194
const moduleURI = vscode.Uri.joinPath(this.uri, "module");
195
- this.#installed =
196
- (await filesystem.exists(moduleURI)) &&
197
- ((await filesystem.readDirectory(moduleURI, { recursive: false }))
198
- ?.length ?? 0) > 0;
+
+ const exists = await filesystem.exists(moduleURI);
+ const empty = await filesystem.empty(moduleURI);
+ this.#installed = exists && !empty;
199
200
return folderStates;
201
}
0 commit comments