1108
1109
if (!useChatHooks || !this.workspaceTrustService.isWorkspaceTrusted()) {
1111
>
const skipReason: IPromptFileDiscoveryResult['skipReason'] = !useChatHooks ? 'disabled' : 'workspace-untrusted';
1112
>
const files = hookFiles.map(promptPath => ({
1113
>
status: 'skipped' as const,
1114
>
skipReason,
1115
>
promptPath: this.withPromptPathMetadata(promptPath, basename(promptPath.uri), promptPath.description),
1116
>
}));
1117
>
const sourceFolders = await this._collectSourceFolderDiagnostics(PromptsType.hook);
1118
>
return { type: PromptsType.hook, files, sourceFolders, hooksInfo: undefined, durationInMillis: stopWatch.elapsed() };
1119
>
}
1120
1121
const useClaudeHooks = this.configurationService.getValue<boolean>(PromptsConfig.USE_CLAUDE_HOOKS);