async apply(force: boolean, headers: IHeaders = {}): Promise<ISyncResourcePreview | null> {
this.syncHeaders = { ...headers };
const status = await this.doApply(force);
this.setStatus(status);
return this.syncPreviewPromise;
} finally {
this.syncHeaders = {};
}
}
async replace(content: string): Promise<boolean> {