mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
show diff editor for keybindings conflicts
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { SyncStatus, ISettingsSyncService, IConflictSetting } from 'vs/platform/userDataSync/common/userDataSync';
|
||||
import { SyncStatus, ISettingsSyncService, IConflictSetting, SyncSource } from 'vs/platform/userDataSync/common/userDataSync';
|
||||
import { ISharedProcessService } from 'vs/platform/ipc/electron-browser/sharedProcessService';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
@@ -16,6 +16,8 @@ export class SettingsSyncService extends Disposable implements ISettingsSyncServ
|
||||
|
||||
private readonly channel: IChannel;
|
||||
|
||||
readonly source = SyncSource.Settings;
|
||||
|
||||
private _status: SyncStatus = SyncStatus.Uninitialized;
|
||||
get status(): SyncStatus { return this._status; }
|
||||
private _onDidChangeStatus: Emitter<SyncStatus> = this._register(new Emitter<SyncStatus>());
|
||||
@@ -81,8 +83,8 @@ export class SettingsSyncService extends Disposable implements ISettingsSyncServ
|
||||
return this.channel.call('resolveConflicts', [conflicts]);
|
||||
}
|
||||
|
||||
getRemotContent(): Promise<string | null> {
|
||||
return this.channel.call('getRemotContent');
|
||||
getRemoteContent(): Promise<string | null> {
|
||||
return this.channel.call('getRemoteContent');
|
||||
}
|
||||
|
||||
private async updateStatus(status: SyncStatus): Promise<void> {
|
||||
|
||||
@@ -74,6 +74,10 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
|
||||
return this.channel.call('hasLocalData');
|
||||
}
|
||||
|
||||
getRemoteContent(source: SyncSource): Promise<string | null> {
|
||||
return this.channel.call('getRemoteContent', [source]);
|
||||
}
|
||||
|
||||
isFirstTimeSyncAndHasUserData(): Promise<boolean> {
|
||||
return this.channel.call('isFirstTimeSyncAndHasUserData');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user