-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tagstack #917
base: next
Are you sure you want to change the base?
Update tagstack #917
Conversation
Thanks for contributing! I share the same concern that if we turn on the switch, the support would be half complete. User might be getting even more confused by the missing support parts. Kind feel this is a slippery path. |
Yes, a more integrated approach - I think - should be to set the But that will take a bit more effort... |
I'm pretty keen to get this landed so was doing some exploratory work around it and it's more complicated than it first appeared. Tagfunc has two modes of operation, one for normal mode and another for insert mode. Normal mode functionality is analogous to So assuming we implement a To be honest I think it is easier to maintain our own stack of Are there other benefits to having an actual |
The main reasons for integrating with the tags function would be to make the whole thing feel natively seamless - jump to definition is really very much like Personally, I find that the jump list is mostly satisfactory. So while I was willing to try something simple to integrate with tags - per this PR - I am not very motivated to work on anything more elaborate. Which, I guess, is why this is now just sitting here. I'd be mildly against this client maintaining its own stack of locations. For me, that would be closer to being the worst of both worlds than the best of both: at least according to my way of working it's not very much better than using the jump list, it's a bunch of extra complexity in the client, and it still doesn't achieve integration with native features. But other users - and the maintainer - may feel differently. |
wip: https://github.com/sorbet/sorbet/compare/jez-undiscriminated-union |
This branch has conflicts that must be resolved |
Fixes #517, #915.
I don't know that I'm completely convinced by this myself:
:tag
) that doesn't work; because the things in the tag stack aren't actually tags so they can't be re-discovered that wayI've also done a round of cargo updates, though #892 seems to commit this project to being stuck with an old
jsonrpc-core
.Re #892 I'd suggest that if the Sorbet developers think that it's OK to add random fields to a JSON-RPC response, they should make that case at
json-rpc
core. paritytech/jsonrpc#448 looks to be where the conversation happened. (Else fix their language server not to do that.)