-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
problems-view: problems order changes on preference changes #8983
Comments
I am unable to reproduce on Windows. Although something seems to happen with the problem view when changing preferences, the order is not randomized for me using master... |
@marechal-p I updated the issue description with more info and included my test workspace. Apparently, the order in which you open files matters. Can you try to reproduce again? |
@dukengn : I debugged this a bit. First of all, the current implementation of the marker data model does not guarantee any specific order, neither by URI, not by owner (owner = source, e.g. ESlint). The order "by chance" is the order in which things get added, but again, as everything is stored in maps it is not guaranteed.
Could you maybe try to reproduce this in VS Code? This would give a hint whether the TypeScript server behaves weird here. Also, w could probably just implement a similar sorting behavior if VS Code has any... |
@JonasHelming from what I understand vscode has a consistent sorting behavior (by resource): |
@vince-fugnitto : Thanks, I guess we should do the same, seems reasonable. Do you know how they sort within one URI, i.e. by owner? |
@JonasHelming I've already added the sorting within a URI (it prioritizes Their respective test-cases for sorting markers: |
VS Code actually sorts the first level of the tree by
results are cached though, you need to reopen the view so see a sort change on the highest level. Do we want to do the same? @vince-fugnitto |
Ideally we should do the same if we believe it produces the best results which I think is true. |
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes eclipse-theia#8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Fixes #8983 Previously info-marker-nodes were ordered by the time they have been reported. This commit will sort the info-marker-nodes based on the following rules: - nodes will be sorted based on the most severe marker they contain - if nodes contain equally severe markers, they are sorted by the URI Signed-off-by: Lukas Boll <lukas-bool@web.de>
Bug Description:
Steps to Reproduce:
a
(error), openb
(error), openpackage.json
(warning).problems-view
by callingToggle Problems View
from the command palette.Additional Information
The text was updated successfully, but these errors were encountered: