File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2626 "prepare" : " npm run build"
2727 },
2828 "package-deps" : [
29- " atom-ide-markdown-service" ,
3029 " busy-signal"
3130 ],
3231 "dependencies" : {
Original file line number Diff line number Diff line change @@ -10,11 +10,20 @@ export function activate() {
1010 // Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable
1111 signatureHelpManager = new SignatureHelpManager ( )
1212 subscriptions . add ( signatureHelpManager )
13- ; ( require ( "atom-package-deps" ) as typeof import ( "atom-package-deps" ) )
14- . install ( "atom-ide-signature-help" , true )
13+
14+ installPackageDeps ( )
1515 . then ( ( ) => {
1616 signatureHelpManager . initialize ( )
1717 } )
18+ . catch ( ( e ) => {
19+ atom . notifications . addError ( e )
20+ } )
21+ }
22+
23+ async function installPackageDeps ( ) {
24+ if ( ! atom . packages . isPackageLoaded ( "busy-signal" ) ) {
25+ await ( await import ( "atom-package-deps" ) ) . install ( "atom-ide-signature-help" , true )
26+ }
1827}
1928
2029/** Called by Atom when deactivating an extension */
You can’t perform that action at this time.
0 commit comments