Skip to content

Conversation

jwortmann
Copy link
Member

This is a part of the suggested enhancements from #2084 (comment).

With the setting "show_references_in_quick_panel": true enabled it will sort the results by URI and location and select the closest one if there is a result in the current file.

Note that the sort order can be OS dependent; for example Pyright uses file:///C:/ format for Windows drive letters for files which are currently open, and file:///c%3A/ format for unopened files. We could add another step to convert from URI to filename and sort those instead, but actually I found it quite useful that currently opened files are shown at the top of the list, when sorting by URI.

@rchl rchl merged commit 07daed8 into sublimelsp:main Oct 19, 2023
@jwortmann jwortmann deleted the references-select-closest branch October 2, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants