173
}
174
}
176
>
return { uri, name, description, when, sessionTypes, storage: PromptsStorage.extension, type, extension, source: PromptFileSource.ExtensionContribution } satisfies IExtensionPromptPath;
177
>
})();
178
>
bucket.set(uri, entryPromise);
179
>
180
>
this._enqueueReadonlyUpdate(uri);
181
>
182
>
if (when) {
183
this._contributedWhenClauses.set(`${type}/${uri.toString()}`, when);
184
this._updateContributedWhenKeys();
185
}
187
>
this._onDidChange.fire({ type });
188
>
189
>
return {
190
>
dispose: () => {
191
>
bucket.delete(uri);
192
>
if (when) {
193
this._contributedWhenClauses.delete(`${type}/${uri.toString()}`);
194
this._updateContributedWhenKeys();
195
}
197
>
}
198
>
};
199
>
}
200
201
/**