-
Notifications
You must be signed in to change notification settings - Fork 133
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
Sort go to definition results to show declarations inside the workspace first #1462
Comments
I'll be happy to work on it @vinistock 👍 I wonder if we should create an issue for |
I'm not sure if workspace symbol supports sorting though. But if it does, then indeed it would be great to sort that one too. I'll assign the issue to you! |
Hello 👋. I have two questions regarding this issue:
Two issues & code from VS Code that seems related, but maybe I'm missing the point: |
Hey, Justin. Yeah, it looks like we may not in fact be able to order things as intended. VS Code indeed merges responses coming from multiple sources, so if you have multiple language servers running you'll get the results from all of them. It makes sense that in a scenario like that, you'd not be able to provide deterministic sorting since VS Code would not know how to order items coming from two different sources. I think we may not be able to achieve what this issue originally intended, unfortunately. But thank you very much for looking into it! Are you okay with closing this or is there anything else you'd like to research before? |
👋 Yes I'm aligned with closing this issue, maybe there is room for improvement for other client, but as I said without more inputs on how they handle the server response it is hard to say. Thanks for taking time to answer! |
Thank you for looking into this! |
We're currently showing them in no particular order, but it's likely much more common for people to want to jump to declarations in their projects rather than the ones coming from gems or the standard library.
Since we know the file URIs, we should be able to sort results inside the workspace first.
The text was updated successfully, but these errors were encountered: