unisonweb / ui-core

Shared design system and core components for Unison Local and Unison Share
MIT License
23 stars 4 forks source link

When `getDefinition` returns more than 1 result, only the first is displayed #68

Open hojberg opened 1 year ago

hojberg commented 1 year ago

When getDefinition returns more than 1 result, we cut a corner and just render the first one in the list. Its rare that you have 2 things named the same, but can occur with smart constructors like in this example from community member Kristian Notari (who reported this issue):

image

We should just render all definitions that were returned, and focus the first one.

yoching commented 6 months ago

I've been working on this issue. Please see this branch if you're interested!

https://github.com/yoching/ui-core/tree/fix-multiple-definition