fix: hanging promises

This commit is contained in:
Dallin Romney 2025-09-25 16:38:00 -07:00
parent 8519483220
commit cc00ceadce

View file

@ -879,7 +879,7 @@ export class Core {
);
if (colocatedRulesUris) {
const rulesCache = CodebaseRulesCache.getInstance();
Promise.all(
void Promise.all(
colocatedRulesUris.map((uri) => rulesCache.update(this.ide, uri)),
).then(() => {
void this.configHandler.reloadConfig("Codebase rule file created");
@ -911,7 +911,7 @@ export class Core {
if (colocatedRulesUris) {
const rulesCache = CodebaseRulesCache.getInstance();
Promise.all(
void Promise.all(
colocatedRulesUris.map((uri) => rulesCache.remove(uri)),
).then(() => {
void this.configHandler.reloadConfig("Codebase rule file deleted");