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
Changes from 4 commits
0faa5b8
e1bb3c7
030bf91
5f13144
0421e8c
5c8a176
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Should we add above something like |
||
extensionLoader.userExtensions.forEach((ext, extId) => { | ||
ext.isEnabled = this.isEnabled(extId); | ||
}); | ||
|
||
// apply state on changes from store | ||
reaction(() => this.state.toJS(), extensionsState => { | ||
extensionsState.forEach((state, extId) => { | ||
|
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