-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: update problem marker sorting (severity, line, column number) #6572
Comments
Or just do it like that always? |
You mean as in sort by |
They don't sort by severity? |
I might have been mistaken this entire time 🙈. It looks like we sort by severity, but also by the source and error message. |
I actually not sure that Theia or VS Code does any sorting. It could be a responsibility of diagnostics owner. Were you able to find the code doing sorting? |
I verified and VS Code performs the following sorting (as described by their test case):
|
Fixes #6572 The following commit updates the `markers` to be sorted based on the following rules: - markers are sorted by `severity`. - if the first step is equal, markers are sorted by `line number`. - if the second step is equal, markers are sorted by `column number`. - else return no change. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #6572 The following commit updates the `markers` to be sorted based on the following rules: - markers are sorted by `severity`. - if the first step is equal, markers are sorted by `line number`. - if the second step is equal, markers are sorted by `column number`. - else return no change. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #6572 The following commit updates the `markers` to be sorted based on the following rules: - markers are sorted by `severity`. - if the first step is equal, markers are sorted by `line number`. - if the second step is equal, markers are sorted by `column number`. - else return no change. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #6572 The following commit updates the `markers` to be sorted based on the following rules: - markers are sorted by `severity`. - if the first step is equal, markers are sorted by `line number`. - if the second step is equal, markers are sorted by `column number`. - else return no change. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #6572 The following commit updates the `markers` to be sorted based on the following rules: - markers are sorted by `severity`. - if the first step is equal, markers are sorted by `line number`. - if the second step is equal, markers are sorted by `column number`. - else return no change. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #6572 The following commit updates the `markers` to be sorted based on the following rules: - markers are sorted by `severity`. - if the first step is equal, markers are sorted by `line number`. - if the second step is equal, markers are sorted by `column number`. - else return no change. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
fixed eclipse-theia#6572 Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
fixed eclipse-theia#6572 Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
fixed eclipse-theia#6572 Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
Fixes: eclipse-theia#6572 The following commit adds an additional problem marker sort based on 'owner` as a fallback to 'severity', 'line number' and 'column number'.Added pmarker sorting by owner Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
Fixes: #6572 The following commit adds an additional problem marker sort based on 'owner` as a fallback to 'severity', 'line number' and 'column number'.Added pmarker sorting by owner Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
Description
Based on the following #6572 (comment), problem markers should be consistently sorted using the following guidelines:
severity
severity
are equal, sort by lowest line numberseverity
andline number
are equal, sort by lowest column numberExample:
Original Post
Currently, _problem markers_ are sorted based on `line number + position`.
I propose that a new preference is created which controls the sorting behavior of markers present in the problems widget, by sorting based on
severity + line number + position
.For example:
Can also be sorted as:
The text was updated successfully, but these errors were encountered: