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

Make "Run/debug tests in context" position a link #3915

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

RikkiGibson
Copy link
Contributor

This modifies the format for the context position so that it formats as a link in VS Code. This is handy when you are reviewing the test output logs and you want to get back to the context position for some tests that you ran previously.

This imitates the formatting for positions used when the compiler reports diagnostics and in stack traces at runtime.

Before: src/Compilers/CSharp/Test/Symbol/Symbols/Source/NullablePublicAPITests.cs 3015:15
After: src/Compilers/CSharp/Test/Symbol/Symbols/Source/NullablePublicAPITests.cs(3015,15)

You can actually try just including these strings in a terminal command and you will see that the former does not parse as a link but the latter does.

/cc @333fred @JoeRobich

@JoeRobich
Copy link
Member

Thanks @RikkiGibson

@JoeRobich JoeRobich merged commit d8a95d9 into dotnet:master Jul 17, 2020
@RikkiGibson RikkiGibson deleted the patch-1 branch July 17, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants