mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Introduce id and user data sync store registry
This commit is contained in:
@@ -22,9 +22,10 @@ export class MainThreadUserData extends Disposable implements MainThreadUserData
|
||||
this._register(toDisposable(() => this.userDataSyncStoreService.deregisterUserDataSyncStore()));
|
||||
}
|
||||
|
||||
$registerUserDataProvider(name: string): void {
|
||||
$registerUserDataProvider(id: string, name: string): void {
|
||||
const proxy = this.proxy;
|
||||
this.userDataSyncStoreService.registerUserDataSyncStore({
|
||||
id,
|
||||
name,
|
||||
read(key: string): Promise<IUserData | null> {
|
||||
return proxy.$read(key);
|
||||
|
||||
Reference in New Issue
Block a user