提交 eb01cf55 编写于 作者: S Sandeep Somavarapu

option to disable settings sync

上级 66cd8438
......@@ -79,6 +79,9 @@ export class SettingsSynchroniser extends Disposable implements ISynchroniser {
}
async sync(_continue?: boolean): Promise<boolean> {
if (!this.configurationService.getValue<boolean>('userConfiguration.syncSettings')) {
return false;
}
if (_continue) {
return this.continueSync();
......
......@@ -29,6 +29,12 @@ export function registerConfiguration(): IDisposable {
default: true,
scope: ConfigurationScope.APPLICATION
},
'userConfiguration.syncSettings': {
type: 'boolean',
description: localize('userConfiguration.syncSettings', "When enabled settings are synchronised while synchronising user configuration."),
default: true,
scope: ConfigurationScope.APPLICATION,
},
'userConfiguration.syncExtensions': {
type: 'boolean',
description: localize('userConfiguration.syncExtensions', "When enabled extensions are synchronised while synchronising user configuration."),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册