Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit d70a462

Browse files
committed
fix: add activation hook
1 parent cf84441 commit d70a462

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@
197197
}
198198
}
199199
},
200+
"activationHooks": [
201+
"core:loaded-shell-environment"
202+
],
200203
"eslintConfig": {
201204
"rules": {
202205
"no-console": "off",

spec/linter-eslint-spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ describe('The eslint provider for Linter', () => {
118118
atom.config.set('linter-eslint.advanced.disableFSCache', false)
119119
atom.config.set('linter-eslint.advanced.disableEslintIgnore', true)
120120

121+
// Activate activation hook
122+
atom.packages.triggerDeferredActivationHooks();
123+
atom.packages.triggerActivationHook('core:loaded-shell-environment');
124+
121125
// Activate the JavaScript language so Atom knows what the files are
122126
await atom.packages.activatePackage('language-javascript')
123127
// Activate the provider

0 commit comments

Comments
 (0)