Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[feature request]: show function call tips in popup #846
I'm hoping to look into this again at some point in the future, but the problem isn't implementing it; it's implementing it well. I've yet to see a plugin that does it well (including the TypeScript plugin) and I'm almost certain it's a Sublime Text limitation.
The biggest issue for me is that it gets extremely frustrating when I'm try to type and the box shows up over the code, meaning I have to switch context to get rid of it. The TypeScript plugin even manages to trigger some kind of bug where clicking away doesn't work half the time so I have to press escape and hope I don't end up closing a panel something else.
I've even gone so far as to try some hacks using phantoms where it's positioned in a consistent place that doesn't obscure the code (i.e. top or bottom of the view), but keeping track of view changes to re-position it kills performance and it doesn't even align correctly sometimes.
When I get some time I will try using a panel like I do with 9o and see if that's any better.
Did you mean the popup stays in a fixed position which obscures the code while typing? If so, I think you could simply remove the
Here is my attempt to deal with positioning.
I'm going to introduce the
It's an output panel which has the following pros:
I can't think of any cons that's not also a limitation in the ST API.
You can try it out early on the
Currently, the following info will be displayed there: