mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Merge pull request #995 from pulsar-edit/debug-for-services
Debugging when a package service is incorrect
This commit is contained in:
commit
c6f2d8dc29
@ -428,6 +428,8 @@ module.exports = class Package {
|
||||
methodName = versions[version];
|
||||
if (typeof this.mainModule[methodName] === 'function') {
|
||||
servicesByVersion[version] = this.mainModule[methodName]();
|
||||
} else {
|
||||
console.warn(`Package ${this.name} declares it provides ${name}@${version} but it doesn't expose a function in ${methodName}`)
|
||||
}
|
||||
}
|
||||
this.activationDisposables.add(
|
||||
@ -447,6 +449,8 @@ module.exports = class Package {
|
||||
this.mainModule[methodName].bind(this.mainModule)
|
||||
)
|
||||
);
|
||||
} else {
|
||||
console.warn(`Package ${this.name} declares it consumes ${name}@${version} but it doesn't expose a function in ${methodName}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user