mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-01 21:24:50 +01:00
debt - move storage main into global storage
The other location one level up is being file watched and storage file changes constantly.
This commit is contained in:
@@ -165,7 +165,7 @@ class CliMain extends Disposable {
|
||||
commonProperties: (async () => {
|
||||
let machineId: string | undefined = undefined;
|
||||
try {
|
||||
const storageContents = await Promises.readFile(joinPath(environmentService.appSettingsHome, 'storage.json').fsPath);
|
||||
const storageContents = await Promises.readFile(joinPath(environmentService.globalStorageHome, 'storage.json').fsPath);
|
||||
machineId = JSON.parse(storageContents.toString())[machineIdKey];
|
||||
} catch (error) {
|
||||
if (error.code !== 'ENOENT') {
|
||||
|
||||
Reference in New Issue
Block a user