Allow file locations to be ordered in peek menu #202664
Labels
editor-symbols
definitions, declarations, references
feature-request
Request for new features or functionality
ux
User experience issues
Milestone
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.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.
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 theexception
instance shown above: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.
The text was updated successfully, but these errors were encountered: