fix: hanging promises
This commit is contained in:
parent
8519483220
commit
cc00ceadce
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue