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

Ensure terminate flags restart when restarting #5954

Merged
merged 1 commit into from
Aug 16, 2019

Conversation

thegecko
Copy link
Member

Signed-off-by: Rob Moran rob.moran@arm.com

What it does

This PR ensures that the restart flag is always set to true when sending a terminate command to a debug adapter during a restart. The default is false.

This could also be fixed by passing true at the end of this function call, but I can't think of any situation where this flag should be set to false during a restart.

I'm also not sure what the config state is saving here, this change may make it redundant?

How to test

Implement terminateRequest() in a debug adapter and observe that restart in the arguments has the value true during a restart.

Review checklist

Reminder for reviewers

Signed-off-by: Rob Moran <rob.moran@arm.com>
@akosyakov akosyakov added the debug issues that related to debug functionality label Aug 16, 2019
@akosyakov akosyakov requested review from akosyakov and tolusha August 16, 2019 07:07
@akosyakov
Copy link
Member

It looks correct to me as well, checking that it does not cause issues with node.js debugging

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

It seems to work well with Node.js extension or maybe even better now since the proper value is passed 😊

Copy link
Contributor

@tolusha tolusha left a comment

Choose a reason for hiding this comment

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

I checked how restart working with c++ debugger and didn't find any regressions.

@thegecko thegecko merged commit f718cb3 into eclipse-theia:master Aug 16, 2019
@thegecko thegecko deleted the debug-restart-fix branch August 16, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug issues that related to debug functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants