mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
issue-656/config-values-arent-scoped (#669)
* issue-656/scoped plugins to hyperterm.plugins * Scoping plugin versions to hyperterm
This commit is contained in:
parent
f9d89176db
commit
9a0316dd59
1 changed files with 4 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ function updatePlugins ({ force = false } = {}) {
|
|||
}
|
||||
} else {
|
||||
// flag successful plugin update
|
||||
cache.set('plugins', id_);
|
||||
cache.set('hyperterm.plugins', id_);
|
||||
|
||||
// cache paths
|
||||
paths = getPaths(plugins);
|
||||
|
|
@ -93,8 +93,8 @@ function updatePlugins ({ force = false } = {}) {
|
|||
const loaded = modules.length;
|
||||
const total = paths.plugins.length + paths.localPlugins.length;
|
||||
const pluginVersions = JSON.stringify(getPluginVersions());
|
||||
const changed = cache.get('plugin-versions') !== pluginVersions && loaded === total;
|
||||
cache.set('plugin-versions', pluginVersions);
|
||||
const changed = cache.get('hyperterm.plugin-versions') !== pluginVersions && loaded === total;
|
||||
cache.set('hyperterm.plugin-versions', pluginVersions);
|
||||
|
||||
// notify watchers
|
||||
if (force || changed) {
|
||||
|
|
@ -148,7 +148,7 @@ exports.updatePlugins = updatePlugins;
|
|||
// we schedule the initial plugins update
|
||||
// a bit after the user launches the terminal
|
||||
// to prevent slowness
|
||||
if (cache.get('plugins') !== id || process.env.HYPERTERM_FORCE_UPDATE) {
|
||||
if (cache.get('hyperterm.plugins') !== id || process.env.HYPERTERM_FORCE_UPDATE) {
|
||||
// install immediately if the user changed plugins
|
||||
console.log('plugins have changed / not init, scheduling plugins installation');
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue