File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
platform/state/electron-main Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class CliMain extends Disposable {
165
165
commonProperties : ( async ( ) => {
166
166
let machineId : string | undefined = undefined ;
167
167
try {
168
- const storageContents = await Promises . readFile ( joinPath ( environmentService . appSettingsHome , 'storage.json' ) . fsPath ) ;
168
+ const storageContents = await Promises . readFile ( joinPath ( environmentService . globalStorageHome , 'storage.json' ) . fsPath ) ;
169
169
machineId = JSON . parse ( storageContents . toString ( ) ) [ machineIdKey ] ;
170
170
} catch ( error ) {
171
171
if ( error . code !== 'ENOENT' ) {
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class StateMainService implements IStateMainService {
154
154
private static readonly STATE_FILE = 'storage.json' ;
155
155
156
156
private readonly legacyStateFilePath = URI . file ( join ( this . environmentMainService . userDataPath , StateMainService . STATE_FILE ) ) ;
157
- private readonly stateFilePath = joinPath ( this . environmentMainService . appSettingsHome , StateMainService . STATE_FILE ) ;
157
+ private readonly stateFilePath = joinPath ( this . environmentMainService . globalStorageHome , StateMainService . STATE_FILE ) ;
158
158
159
159
private readonly fileStorage : FileStorage ;
160
160
You can’t perform that action at this time.
0 commit comments