Skip to content

PromptScript API


Function: generateVSCodeHooks()

generateVSCodeHooks(hooks): Record\<string, unknown[]>

Defined in: formatters/src/hook-adapters.ts:870

Generate VS Code Copilot Agent hook entries.

VS Code uses the Claude-compatible PascalCase event schema, but its workspace hook loader currently ignores matcher values. The matcher is retained for readability and the compatibility warning directs users to filter tool input inside the command when exact filtering matters.

Parameters

hooks

HookDefinition[]

Returns

Record\<string, unknown[]>