Skip to content

Remove extra prompt string added to interactive debugging session #424

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

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Apr 6, 2017

This change removes some code that was causing an extra command prompt
string to be printed to the integrated console when running an
interactive debugging session. It also makes the termination of such a
session more reliable.

Resolves #422.

This change removes some code that was causing an extra command prompt
string to be printed to the integrated console when running an
interactive debugging session.  It also makes the termination of such a
session more reliable.

Resolves PowerShell#422.
{
await this.editorSession.PowerShellContext.ExecuteScriptString(
"", false, true);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

So what do we miss out on during an interactive session debug by not having the above code? An initial prompt string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The prompt has already been written by this point, so this line is totally pointless now. It was necessary before the integrated console came along because a prompt was never displayed at first when the debugger starts, the assumption was that we were launching a script. For an "interactive session" I needed to invoke a prompt to display, so this was a hacky way to do that :)

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

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

LGTM.

@daviwil daviwil merged commit 4935c68 into PowerShell:develop Apr 6, 2017
@daviwil daviwil deleted the fix-422 branch April 6, 2017 04:02
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