43
* a scope that declares no recognized hooks contributes no entry.
44
*/
46
>
workingDirectory: URI | undefined,
47
>
userHome: URI,
48
>
fileService: IFileService,
49
>
): Promise<readonly HookCustomization[]> {
50
>
const result: HookCustomization[] = [];
51
>
const seen = new ResourceSet();
52
>
for (const uri of claudeHookFiles(workingDirectory, userHome)) {
53
>
if (seen.has(uri)) {
54
// The same settings file can be reached from two scopes (e.g. the
55
// user opened their home directory as the workspace) — surface it