55
56
constructor(
58
>
@IStorageService storageService: IStorageService,
59
>
) {
60
>
super();
61
>
62
>
const mapMemento = observableMemento<EnablementMap>({
63
>
key: storageKey,
64
>
defaultValue: new Map(),
65
>
toStorage: mapToStorage,
66
>
fromStorage: mapFromStorage,
67
>
});
68
>
69
>
this._profileState = this._register(
70
>
mapMemento(StorageScope.PROFILE, StorageTarget.MACHINE, storageService)
71
>
);
72
>
73
>
this._workspaceState = this._register(
74
>
mapMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE, storageService)
75
>
);
76
>
}
77
78
readEnabled(key: string, reader?: IReader): ContributionEnablementState {