48
49
constructor(
51
>
@IConfigurationService private readonly configService: IConfigurationService,
52
>
@IWorkspaceContextService private readonly workspaceService: IWorkspaceContextService,
53
>
@IWorkbenchEnvironmentService private readonly environmentService: IWorkbenchEnvironmentService,
54
>
@ISearchService private readonly searchService: ISearchService,
55
>
@IUserDataProfileService private readonly userDataService: IUserDataProfileService,
56
>
@ILogService private readonly logService: ILogService,
57
>
@IPathService private readonly pathService: IPathService,
58
>
@IWorkspaceTrustManagementService private readonly workspaceTrustManagementService: IWorkspaceTrustManagementService,
59
>
) {
60
>
61
>
const userDataPromptsHome = this.userDataService.currentProfile.promptsHome;
62
>
this.userDataFolder = {
63
>
uri: userDataPromptsHome,
64
>
searchRoot: userDataPromptsHome,
65
>
filePattern: undefined,
66
>
source: PromptFileSource.UserData,
67
>
storage: PromptsStorage.user,
68
>
displayPath: nls.localize('promptsUserDataFolder', "User Data"),
69
>
isDefault: true
70
>
};
71
>
}
72
73
protected getWorkspaceFolders(): readonly IWorkspaceFolder[] {
75
>
// (session state + findAgentSkills), not via filesystem scanning.
76
>
// Including them here would issue a `resourceList` JSON-RPC per
77
>
// configured location for every nonexistent `.github` / `.claude`
78
>
// folder on the remote.
79
>
return this.workspaceService.getWorkspace().folders.filter(f => f.uri.scheme !== AGENT_HOST_SCHEME);
80
>
}
81
82
protected getWorkspaceFolder(resource: URI): IWorkspaceFolder | undefined {