RBS Type Signatures toggle appears to fail
olivierlacan opened this issue · 3 comments
olivierlacan commented
natematykiewicz commented
So I noticed 2 things looking at this just now:
- It doesn't seems like the button text ever changes. I press the button on the String class, and it does toggle signatures on and off, but the button doesn't change to the word "Disable" ever.
- I don't think we have OptionParser::Completion type signatures. It's just showing that button if this is Ruby >= 3.0. There's no per-class logic right now (seems like there should be). I see that there's type signatures for OptionParser (toggling does change the method definitions), but OptionParser::Completion doesn't seem to work. I know the type signatures are pulled from the RBS gem, but I'm not exactly sure how it all works.
colby-swandale commented
👋🏻 Apologies for the delay in responding. I worked on a fix for the button not correctly updating the label a few days ago but it never went out because of a flaky spec.
I've pushed the change out to production and the button is using the correct labels now.
Re: OptionParser::Completion
Type signatures. There doesn't seem to be any type signatures specifically for OptionParser::Completion
from looking at the RBS repository https://github.com/ruby/rbs/blob/master/stdlib/optparse/0/optparse.rbs
olivierlacan commented
Thanks so much @colby-swandale! 😃