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

#75079 Use URI for machine settings

上级 e983cdbc
......@@ -100,8 +100,8 @@ export interface IEnvironmentService {
settingsResource: URI;
keybindingsResource: URI;
machineSettingsHome: string;
machineSettingsPath: string;
machineSettingsHome: URI;
machineSettingsResource: URI;
settingsSearchBuildId?: number;
settingsSearchUrl?: string;
......
......@@ -115,10 +115,10 @@ export class EnvironmentService implements IEnvironmentService {
get settingsResource(): URI { return resources.joinPath(this.appSettingsHome, 'settings.json'); }
@memoize
get machineSettingsHome(): string { return path.join(this.userDataPath, 'Machine'); }
get machineSettingsHome(): URI { return URI.file(path.join(this.userDataPath, 'Machine')); }
@memoize
get machineSettingsPath(): string { return path.join(this.machineSettingsHome, 'settings.json'); }
get machineSettingsResource(): URI { return resources.joinPath(this.machineSettingsHome, 'settings.json'); }
@memoize
get globalStorageHome(): string { return path.join(this.appSettingsHome.fsPath, 'globalStorage'); }
......
......@@ -199,8 +199,8 @@ export class SimpleWorkbenchEnvironmentService implements IWorkbenchEnvironmentS
appSettingsHome: URI;
settingsResource: URI;
keybindingsResource: URI;
machineSettingsHome: string;
machineSettingsPath: string;
machineSettingsHome: URI;
machineSettingsResource: URI;
settingsSearchBuildId?: number;
settingsSearchUrl?: string;
globalStorageHome: string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册