Skip to content

Commit

Permalink
core: re-create plugin index on reset
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Sopylo <[email protected]>
  • Loading branch information
maciek134 committed Apr 21, 2023
1 parent 35b7168 commit f41206e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,7 @@ const semver = require("semver");
class Core {
constructor() {
this.session = new Session();
this.props = {};
this.reset();
this.plugins = new PluginIndex(
this.props,
cachePath,
mainEvent,
log,
settings,
this.session
);
}

/**
Expand All @@ -71,6 +62,14 @@ class Core {
os: null,
settings: {}
};
this.plugins = new PluginIndex(
this.props,
cachePath,
mainEvent,
log,
settings,
this.session
);
}

/**
Expand Down

0 comments on commit f41206e

Please sign in to comment.