311
312
async resolveResourceContent(resource: ServerResource, ref: string, collection?: string, headers: IHeaders = {}): Promise<string | null> {
314
throw new Error('No settings sync store url configured.');
315
}
317
>
const url = joinPath(this.getResourceUrl(this.userDataSyncStoreUrl, collection, resource), ref).toString();
318
>
headers = { ...headers };
319
>
headers['Cache-Control'] = 'no-cache';
320
>
321
>
const context = await this.request(url, { type: 'GET', headers, callSite: 'userDataSync.resolveResourceContent' }, [], CancellationToken.None);
322
const content = await asTextOrError(context);
323
return content;
325
326
async deleteResource(resource: ServerResource, ref: string | null, collection?: string): Promise<void> {