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

Debug only when test manager is connected #1239

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

akshita31
Copy link
Contributor

Fixes: dotnet/vscode-csharp#2400

If there is a Build failure the test manager fails to connect and the required variables for the debug process are not initialized. However since there is no check that the TestManager is connected or not, we go ahead with the debug request and the system fails with the exception _writer is null. However, since we entered the StartSession method, the required variables are set and it appears to omnisharp-roslyn that a debug session has started whereas there is no such session. Hence any subsequent debug request is rejected with the error - Debug session started.

Hence the fix is to verify whether the testManager is connected before we call the StartSession ,else fail with the relevant exception.

@rchande
Copy link

rchande commented Jul 3, 2018

This is probably interesting enough to do a changelog entry :)

@akshita31 akshita31 merged commit 00013b9 into OmniSharp:master Jul 3, 2018
@akshita31 akshita31 deleted the test_manager branch July 3, 2018 22:23
Copy link
Contributor

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

Agree with @rchande -- this needs a CHANGELOG.md entry in the omnisharp-roslyn repo.

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.

Unit Test Debugging with Syntax Error Requires VS Code Restart
3 participants