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

don't delete the session file #2223

Merged

Conversation

TylerLeonhardt
Copy link
Member

PR Summary

fixes #2144

Rob's comment gave it a way. Restart was totally broken and I opened an issue on vscode about this behavior.

I'm not sure they'll fix it so we'll go with this workaround for now...

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

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.

The only session that could use the debugSessionFile is the current session since it's based on PID. Well except that PIDs are recycled on Windows. Is that a concern?

@TylerLeonhardt
Copy link
Member Author

It is a concern but I don't really have time to implement it properly (hence the TODO in the comment) :( - and restart working 98% of the time is better than 0%.

@TylerLeonhardt
Copy link
Member Author

Also, wouldn't the new process of the same pid create a new session file? Unless the same pid can be used by the same process, I don't see this being an issue.

@TylerLeonhardt TylerLeonhardt merged commit 661a9ee into PowerShell:master Oct 3, 2019
@TylerLeonhardt TylerLeonhardt deleted the donot-delete-session-file branch October 3, 2019 00:13
@rkeithhill
Copy link
Contributor

rkeithhill commented Oct 3, 2019

restart working 98% of the time is better than 0%.

True dat!

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.

Not able to step through script after the latest update to VSCode
3 participants