Skip to content
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

Allow file locations to be ordered in peek menu #202664

Closed
SnowSzn opened this issue Jan 17, 2024 · 3 comments
Closed

Allow file locations to be ordered in peek menu #202664

SnowSzn opened this issue Jan 17, 2024 · 3 comments
Assignees
Labels
editor-symbols definitions, declarations, references feature-request Request for new features or functionality ux User experience issues

Comments

@SnowSzn
Copy link

SnowSzn commented Jan 17, 2024

Hi,

I have made an extension (source code) allows you to use VSCode as an editor for game projects made in RPG Maker engine.

Currently, this extension allows to launch, from VSCode, the game executable and in case an exception kills the game, it shows information about the error with its corresponding backtrace.

When the game exits, the extension processes the exception information and creates an object with the name, the message and a backtrace array with the paths and lines of the files.

I am currently using the editor.action.peekLocations command to display the locations of the error backtrace.

editor.action.peekLocations - Peek locations from a position in a file

    uri - The text document in which to start
    position - The position at which to start
    locations - An array of locations.
    multiple - Define what to do when having multiple results, either peek, gotoAndPeek, or goto

The problem I have is that, all the locations in the peekLocations menu are sorted alphabetically, with no possibility to change it (I think), here's an example of what I mean.

imagen

As you can see in the image, the locations inside the peek menu on the left are all ordered by the file URI, and they do not match the order of the backtrace array (on the right).

The editor.action.peekLocations command is called as follows with the exception instance shown above:

imagen

I'm currently running VSCode version 1.85.1.

Is it possible to allow passing an optional argument that is a sort function to the command, to order the locations?

In case it is not provided, the current alphabetical ordering method could be used.

@jrieken jrieken added ux User experience issues editor-symbols definitions, declarations, references feature-request Request for new features or functionality labels Jan 17, 2024
@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone Jan 17, 2024
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot
Copy link
Collaborator

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot
Copy link
Collaborator

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-symbols definitions, declarations, references feature-request Request for new features or functionality ux User experience issues
Projects
None yet
Development

No branches or pull requests

3 participants