-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Resolve extension enabled status when loading it #1485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve extension enabled status when loading it #1485
Conversation
Signed-off-by: Lauri Nevala <[email protected]>
@@ -34,11 +34,6 @@ export class ExtensionsStore extends BaseStore<LensExtensionsStoreModel> { | |||
await extensionLoader.whenLoaded; | |||
await this.whenLoaded; | |||
|
|||
// activate user-extensions when state is ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensionManager has not loaded extensions at this point so we cannot determine the status here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add above something like await extensionManager.whenReady
?
This is conflicted with #1482, so let's re-implement this after it is merged. |
this.packagesJson.dependencies[manifestJson.name] = path.dirname(manifestPath); | ||
|
||
if (!isBundled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] mutation could be avoided: const isEnabled = isBundled || extensionsStore.isEnabled(installedManifestPath);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 will change
Signed-off-by: Lauri Nevala <[email protected]>
Signed-off-by: Lauri Nevala <[email protected]>
Fixes #1471
Signed-off-by: Lauri Nevala [email protected]