From bcf7f4822dd03ab251f418d3556ab6ae61f64244 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Tue, 17 Dec 2024 16:38:52 -0800 Subject: [PATCH] Expose `dbPromise` in `StateStore` --- src/state-store.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/state-store.js b/src/state-store.js index 1b3482aedc..c443e3fbf3 100644 --- a/src/state-store.js +++ b/src/state-store.js @@ -44,6 +44,11 @@ module.exports = class StateStore { return this._getCorrectImplementation().then(i => i.count()); } + get dbPromise() { + // Exposed due to usage in [`project-plus`](https://web.pulsar-edit.dev/packages/project-plus) + return this._getCorrectImplementation().then(i => i.dbPromise()); + } + _getCorrectImplementation() { return awaitForAtomGlobal().then(() => { if(atom.config.get('core.useLegacySessionStore')) {