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

Fix running unit tests defined in nested classes #739

Merged

Conversation

DustinCampbell
Copy link
Contributor

@DustinCampbell DustinCampbell commented Jan 30, 2017

Fixes dotnet/vscode-csharp#743 and fixes dotnet/vscode-csharp#1151

The issue here is that the metadata name for nested classes was not correct. OmniSharp would report "A.B.C" for the following code, but it should be "A.B+C".

namespace A
{
    class B
    {
        class C
        {
        }
    }
}

Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

}

var builder = s_cachedBuilder.Acquire();
try
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm suprised this behavior is not part of the Roslyn Api

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, Roslyn didn't want to be an API for metadata.

@DustinCampbell DustinCampbell merged commit 0490de2 into OmniSharp:dev Jan 30, 2017
@DustinCampbell DustinCampbell deleted the fix-unit-tests-in-nested-classes branch February 2, 2017 19:20
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.

None yet

3 participants