What's wrong with this entry?
Anonymous. No account, no email.
What: Plugin loading now detects and prevents duplicate hook file loading How it works:
- Uses
realpathSync()to resolve canonical file paths (at line 275643 inBwQ()) - Tracks loaded hook files in a Set to detect duplicates
- In strict mode (default), duplicate hooks trigger errors with helpful messages
- Automatically loads
hooks/hooks.jsonif it exists, so manifest shouldn't reference it
Details:
- New 5th parameter added to plugin loading function
BwQ(A, B, Q, I, G = !0)whereGcontrols strict mode (function signature at line 275505) - Strict mode enabled by default but can be disabled via marketplace entry's
strict: falseproperty (call site at line 275831) - Enhanced logging: "Loaded hooks from standard location for plugin..." (at line 275647)
- Error message explains the issue: "The standard hooks/hooks.json is loaded automatically, so manifest.hooks should only reference additional hook files" (at lines 275696-275697)
- Prevents common plugin authoring mistakes and duplicate hook registrations
- Evidence: Function
BwQ() at line 275505, duplicate detection atlines 275689-275707, Set tracking atline 275637