-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Sort by location doesn't work #317
Comments
Sorting seems to be broken in other cases as well. For example, "Sort by status" often doesn't work right after running a test that fails. If you then switch the sort order to something else and then back to status, it does sort correctly. Since I have seen this behavior also with the Python extension, I suspect it's a bug in VS Code, not in TestMate. I didn't get around to filing an issue yet, because I wanted to investigate a little more thoroughly first. |
Here's the issue for the "Sort by status" problem mentioned above: microsoft/vscode#139648. However, it is unrelated to this one ("Sort by Location"). For this one, the problem is that "Sort by location" sorts by URI and line range, but test suites in gtest don't have a line range (they don't have the little "go to test" icon). That's why test suites in gtest are sorted by name, and the tests within are sorted by location. A related VS Code issue is microsoft/vscode#130882. It might be possible to improve this by setting a suite's URI and range to the URI and range of its first contained test (@matepek?). There could still be strange situations like the following:
but I don't think there's much you can do about these in any case. |
if only it were that easy.. vscode api is not that flexible:
Also the custom grouping feature introduces some limitation here. The solution is not trivial |
It might.. I will do a release and let's see how it works for everyone.. |
Fixed in **v4.0.17**.This issue was mentioned in CHANGELOG.md under a released entry so it is assumed to be fixed. |
Describe the bug
.cpp
file they are intoDesktop
Log ?
Let me know if you'd like me to attach a log.
It's not a big deal for the user just a bit of a shame.
The text was updated successfully, but these errors were encountered: