提交 2a1f1671 编写于 作者: R Rachel Macfarlane

Fix #94888, preferences sync gets reenabled on reload

上级 44c51853
...@@ -39,7 +39,7 @@ export interface IEnvironmentService { ...@@ -39,7 +39,7 @@ export interface IEnvironmentService {
// --- settings sync // --- settings sync
userDataSyncLogResource: URI; userDataSyncLogResource: URI;
userDataSyncHome: URI; userDataSyncHome: URI;
sync: 'on' | 'off'; sync: 'on' | 'off' | undefined;
// --- extension development // --- extension development
debugExtensionHost: IExtensionHostDebugParams; debugExtensionHost: IExtensionHostDebugParams;
......
...@@ -92,7 +92,7 @@ export class EnvironmentService implements INativeEnvironmentService { ...@@ -92,7 +92,7 @@ export class EnvironmentService implements INativeEnvironmentService {
get userDataSyncLogResource(): URI { return URI.file(path.join(this.logsPath, 'userDataSync.log')); } get userDataSyncLogResource(): URI { return URI.file(path.join(this.logsPath, 'userDataSync.log')); }
@memoize @memoize
get sync(): 'on' | 'off' { return this.args.sync === 'off' ? 'off' : 'on'; } get sync(): 'on' | 'off' | undefined { return this.args.sync; }
@memoize @memoize
get machineSettingsResource(): URI { return resources.joinPath(URI.file(path.join(this.userDataPath, 'Machine')), 'settings.json'); } get machineSettingsResource(): URI { return resources.joinPath(URI.file(path.join(this.userDataPath, 'Machine')), 'settings.json'); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册