Merge pull request #9492 from uinstinct/new-rule-reload

fix: show new rule once created
This commit is contained in:
Dallin Romney
2026-01-12 20:12:28 -08:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -414,6 +414,7 @@ export class Core {
msg.data.blockType,
msg.data.baseFilename,
);
walkDirCache.invalidate();
await this.configHandler.reloadConfig(
"Local block created (config/addLocalWorkspaceBlock message)",
);
@@ -422,6 +423,7 @@ export class Core {
on("config/addGlobalRule", async (msg) => {
try {
await createNewGlobalRuleFile(this.ide, msg.data?.baseFilename);
walkDirCache.invalidate();
await this.configHandler.reloadConfig(
"Global rule created (config/addGlobalRule message)",
);