-
Notifications
You must be signed in to change notification settings - Fork 672
fix: warn and skip duplicate extension registration instead of throwing #14543
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
base: main
Are you sure you want to change the base?
Changes from 11 commits
4403806
acb0d12
f04c901
e89e4a3
8c65b26
aa265ec
df4c273
c8d4d0f
c71e14f
bf413b1
3e64754
b8d83f4
6d08ed8
b79c239
d9a5783
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
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. Can we just create a "isExtensionInstalled" primitive in safer cleaner way?
Contributor
Author
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. Good call — done in f04c901. const extensionByName = ref<Map<string, ComfyExtension>>(new Map())
const isExtensionInstalled = (name: string) => extensionByName.value.has(name)That drops the two things that made the previous version subtle — the Two things I verified rather than assumed:
Incidental improvement: Existing coverage carries over unchanged —
Contributor
Author
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. Re-requested your review, @christian-byrne. Leaving this thread open for you to close rather than closing it myself — per Nothing has changed on this since the reply above; the two commits after it are unrelated (a |
Uh oh!
There was an error while loading. Please reload this page.