Fix pushbutton externally connected pins - #3176
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
imrishabh18
left a comment
There was a problem hiding this comment.
I am confused, can you explain more about the issue?
|
@imrishabh18 For example: <pushbutton
name="SW1"
externallyConnectedPins={[["pin1", "pin2"]]}
/>This should create a This PR adds that missing trace creation behavior and includes a regression test for it. |
|
@rushabhcodes pushbuttons don't usually have externallyConnectedPins |
|
i'm sort of confused why you want this |
|
i don't think this is based on a real issue, we shouldn't spend our time on stuff that isn't actually used |
Summary
Fix
externallyConnectedPinssupport for<pushbutton />components.PushButtonnow creates the requested source-level traces, matching the behavior already implemented byChip. A regression test verifies thatSW1.pin1connects toSW1.pin2in the generated circuit JSON.Validation
bunx tsc --noEmitpassesIssue
Fixes #3118