mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Adds Memento.keys #87110
This commit is contained in:
@@ -56,6 +56,11 @@ export class ExtensionMemento implements vscode.Memento {
|
||||
}, 0);
|
||||
}
|
||||
|
||||
get keys(): readonly string[] {
|
||||
// Filter out `undefined` values, as they can stick around in the `_value` until the `onDidChangeStorage` event runs
|
||||
return Object.entries(this._value ?? {}).filter(([, value]) => value !== undefined).map(([key]) => key);
|
||||
}
|
||||
|
||||
get whenReady(): Promise<ExtensionMemento> {
|
||||
return this._init;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user