Skip to content

Commit b5aa0f0

Browse files
author
Benjamin Pasero
committed
storage - also log path
1 parent 7f15423 commit b5aa0f0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/vs/platform/storage/node/storageService.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class StorageService extends Disposable implements IStorageService {
4848
}
4949

5050
private globalStorage: Storage;
51+
private globalStorageWorkspacePath: string;
5152

5253
private workspaceStoragePath: string;
5354
private workspaceStorage: Storage;
@@ -76,7 +77,8 @@ export class StorageService extends Disposable implements IStorageService {
7677
}
7778
};
7879

79-
this.globalStorage = new Storage({ path: workspaceStoragePath === StorageService.IN_MEMORY_PATH ? StorageService.IN_MEMORY_PATH : StorageService.IN_MEMORY_PATH, logging: this.loggingOptions });
80+
this.globalStorageWorkspacePath = workspaceStoragePath === StorageService.IN_MEMORY_PATH ? StorageService.IN_MEMORY_PATH : StorageService.IN_MEMORY_PATH;
81+
this.globalStorage = new Storage({ path: this.globalStorageWorkspacePath, logging: this.loggingOptions });
8082
this._register(this.globalStorage.onDidChangeStorage(key => this.handleDidChangeStorage(key, StorageScope.GLOBAL)));
8183

8284
this.createWorkspaceStorage(workspaceStoragePath);
@@ -181,13 +183,13 @@ export class StorageService extends Disposable implements IStorageService {
181183
workspaceItemsParsed[key] = safeParse(value);
182184
});
183185

184-
console.group(`Storage: Global (check: ${result[2]}, load: ${getDuration('willInitGlobalStorage', 'didInitGlobalStorage')})`);
186+
console.group(`Storage: Global (check: ${result[2]}, load: ${getDuration('willInitGlobalStorage', 'didInitGlobalStorage')}, path: ${this.globalStorageWorkspacePath})`);
185187
console.table(globalItems);
186188
console.groupEnd();
187189

188190
console.log(globalItemsParsed);
189191

190-
console.group(`Storage: Workspace (check: ${result[3]}, load: ${getDuration('willInitWorkspaceStorage', 'didInitWorkspaceStorage')})`);
192+
console.group(`Storage: Workspace (check: ${result[3]}, load: ${getDuration('willInitWorkspaceStorage', 'didInitWorkspaceStorage')}, path: ${this.workspaceStoragePath})`);
191193
console.table(workspaceItems);
192194
console.groupEnd();
193195

0 commit comments

Comments
 (0)