Skip to content

Commit 718a544

Browse files
committed
sentinel: Cachebust commands
1 parent ceb8e7e commit 718a544

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/sentinel/hotpatch.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ export async function hotpatch(this: Sentinel, hotpatchType: HotpatchType, by: s
6969
break;
7070
}
7171

72+
case 'commands': {
73+
const commandsRegister = registers.list.find(register => register.label === 'commands')!;
74+
await cachebustDir(fsPath('ps', 'commands'));
75+
await commandsRegister.reload([]);
76+
break;
77+
}
78+
7279
default:
7380
const register = registers.list.find(register => register.label === hotpatchType);
7481
if (!register) throw new ChatError(`Hotpatch type ${hotpatchType} not found.` as NoTranslate);

0 commit comments

Comments
 (0)