Skip to content

Commit

Permalink
Merge pull request #27 from atom-ide-community/fix/dep-manager-install
Browse files Browse the repository at this point in the history
fix: dependency installation prompt
  • Loading branch information
appelgriebsch authored Mar 17, 2019
2 parents db7cadc + 85386ed commit 67d7c0d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ module.exports = {
*/
datatipManager: null,

/**
* [renderer description]
* @type {[type]}
*/
renderer: null,

/**
* called by Atom when activating an extension
* @param {[type]} state [description]
Expand All @@ -27,6 +33,10 @@ module.exports = {

if (!this.datatipManager) this.datatipManager = new DataTipManager();
this.subscriptions.add(this.datatipManager);

require('atom-package-deps').install('atom-ide-datatip').then(() => {
this.datatipManager.initialize(this.renderer);
});
},

/**
Expand All @@ -49,8 +59,6 @@ module.exports = {
},

consumeMarkdownRenderer(renderer) {
require('atom-package-deps').install('atom-ide-datatip').then(() => {
this.datatipManager.initialize(renderer);
});
this.renderer = renderer;
}
};

0 comments on commit 67d7c0d

Please sign in to comment.