Open rlmark opened 10 months ago
@ChrisPenner can you take a look at this one? Or delegate to someone who you think knows this code better if that's not you.
The current logic for computing constructor names is now (as of this PR) supposed to be - take the FQN of the type, and the FQN of the constructor, and subtract the FQN of the type from the prefix of the constructor. So if the type is blah.foo.oog.Yay
and the constructor is blah.foo.oog.Yay.Uno
, the constructor will print as Uno
.
This is how it's being done locally from the view
command, but it looks like the local UI and share are using a different code path?
Looks good. But then check the local UI:
Also console doc rendering handles it okay (although it's stripping the FQN from the type, looks like):
Not sure what's happening here but should be able to figure it out; my plate is a bit full at the moment so if I don't get to it in a couple weeks please ping me again :)
This one is still happening even though #4330 is not.
Mentioned in this slack thread
The website and Unison Share now render the full paths to data types whereas before it would abbreviate them the shortest possible path.
Here's an example on Unison share: https://share.unison-lang.org/@unison/website/code/main/latest/terms/learn/fundamentals/dataTypes/uniqueAndStructuralTypes