mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
refactor sync to reflect preview, merge, accept & apply.
This commit is contained in:
@@ -594,7 +594,7 @@ class UserDataSyncPreview extends Disposable implements IUserDataSyncPreview {
|
||||
this.updateResources();
|
||||
}
|
||||
|
||||
async accept(syncResource: SyncResource, resource: URI, content: string | null): Promise<void> {
|
||||
async accept(syncResource: SyncResource, resource: URI, content?: string | null): Promise<void> {
|
||||
if (this.manualSync) {
|
||||
const syncPreview = await this.manualSync.task.accept(resource, content);
|
||||
this.updatePreview(syncPreview);
|
||||
|
||||
Reference in New Issue
Block a user