* true, upgrade it to recursive while preserving the accumulated trigger URIs.
*/
function addWatch(map: ResourceMap<IWatchSpec>, watchUri: URI, recursive: boolean, resourceToWatch: URI): void {
sessionCustomizationDiscovery.ts
let entry = map.get(watchUri);
if (!entry) {
entry = { recursive, resourcesToWatch: new ResourceSet() };
map.set(watchUri, entry);
} else if (recursive && !entry.recursive) {
entry = { recursive: true, resourcesToWatch: entry.resourcesToWatch };
map.set(watchUri, entry);
}
}
/**