mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
Merge remote-tracking branch 'origin/main' into feat/npm-extension-installation
This commit is contained in:
commit
2c1432a23a
47 changed files with 1056 additions and 253 deletions
|
|
@ -1770,6 +1770,15 @@ export class Config {
|
|||
return this.hookSystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fast-path check: returns true only when hooks are enabled AND there are
|
||||
* registered hooks for the given event name. Callers can use this to skip
|
||||
* expensive MessageBus round-trips when no hooks are configured.
|
||||
*/
|
||||
hasHooksForEvent(eventName: string): boolean {
|
||||
return this.hookSystem?.hasHooksForEvent(eventName) ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if hooks are enabled.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue