Protected
activeProtected
additionalStores additional directory paths for loading template files.
Protected
allTracks all loaded customizations, including overridden ones, mapped by source URI.
Protected
Readonly
envProtected
Readonly
fileReadonly
onEvent fired when custom agents are modified
Protected
Readonly
onReadonly
onEvent fired when a prompt fragment is changed
Protected
Readonly
onProtected
Readonly
openerProtected
Readonly
preferencesProtected
templateContains file extensions that identify prompt template files.
Protected
toCollection of disposable resources for cleanup when the service updates or is disposed.
Protected
trackedStores URI strings of template files from directories currently being monitored for changes.
Protected
watchedMaps URI strings to WatchedFileInfo objects for individually watched template files.
Protected
workspaceStores specific file paths, provided by the settings, that should be treated as templates.
Protected
addAdds a template to the customizations map, handling conflicts based on priority
The map to add the customization to
The fragment ID
The template content
The URI of the source file (used to distinguish updates from conflicts)
The map to track all loaded customizations
The customization priority
The source type of the customization
Protected
editProtected
generateGets the active customized prompt fragment for a given ID
The prompt fragment ID
The active customized fragment or undefined if none exists
Gets all customizations for a prompt fragment ordered by priority
The prompt fragment ID
Array of customized fragments ordered by priority (highest first)
Gets all custom agent descriptions
Array of custom agent descriptions
Returns all locations of existing customAgents.yml files and potential locations where new customAgents.yml files could be created.
An array of objects containing the URI and whether the file exists
Protected
getProtected
getImplementation of the generic getPromptFragmentIDFromResource method in the interface Accepts any resource identifier but only processes URIs
Resource to check
Fragment ID or undefined if not found
Protected
getProtected
getProtected
hashProtected
initProtected
isChecks if the given file extension is registered as a prompt template extension
The file extension including the leading dot (e.g., '.prompttemplate')
True if the extension is registered as a prompt template extension
Protected
loadLoad custom agents from a specific directory
The URI of the directory to load from
Map to store the loaded agents by ID
Protected
processProcesses a directory for template files, adding them to the customizations map and setting up file watching
Map to store active customizations
Set to track URIs being monitored
Map to store all loaded customizations
URI of the directory to process
Priority level for customizations in this directory
Source type of the customization
Protected
processProcess the template files specified by path, watching for changes and loading their content into the customizations map
Map to store active customizations
Set to track URIs being monitored
Map to store all loaded customizations
Map to store file watch information
Protected
removeRemoves a customization from customizations maps based on the source URI. Also checks for any lower-priority customizations with the same ID that might need to be loaded.
The URI of the source file being removed
The map of all loaded customizations
The map of active customizations
Optional set of tracked URIs to update
The fragment ID that was removed, or undefined if no customization was found
Protected
removeProtected
updateUpdates multiple configuration properties at once, triggering only a single update process.
An object containing the properties to update
Promise that resolves when the update is complete
Contains the currently active customization, mapped by prompt fragment ID.