Skip to content

Commit

Permalink
Expose dbPromise in StateStore
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Dec 18, 2024
1 parent a5fccfc commit bcf7f48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/state-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit bcf7f48

Please sign in to comment.