Open jack-bliss opened 8 months ago
I'm open to having it be dynamic (e.g. as long as the current editor) as an optimal answer ( I likely C&P'd the 120 from the TS website codebase) before looking at adding an option
that would probably be ideal tbh! i don't think theres a whole lot of value in truncating it atm, since its always on its own line, and you can only have one per line.
Happy if it would be not cut off somehow. For now, could we have a configuration to set the length by config?
Affected by microsoft/vscode#205708
Would be a huge help if this were configurable! Even just increasing the default feels like it would be a big help. 120 feels really limiting, especially if you want to use the newer //=>?
for same-line inference or just need a longer type name so that you can line up //^?
correctly after formatting.
I'd expect that the downside for users whose types get cut off is relatively minor since it would have been truncated either way, but the upside for users with more space is huge 🙏
I'm hoping this helps :)
https://github.com/orta/vscode-twoslash-queries/blob/d461407faff408be22a776c0c21ffc52799d0a33/src/helpers.ts#L41
the referenced issue is closed due to inactivity
this means that sometimes the type hints get cut off long before they're still useable: