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

cli: stop tunnel processes during update #187738

Merged
merged 3 commits into from
Jul 12, 2023
Merged

Conversation

connor4312
Copy link
Member

Fixes #183715

@connor4312 connor4312 enabled auto-merge (squash) July 12, 2023 18:43
@connor4312 connor4312 self-assigned this Jul 12, 2023
@vscodenpa vscodenpa added this to the July 2023 milestone Jul 12, 2023
if IsNotBackgroundUpdate() and not StopTunnelOtherProcesses() then
Result := '{#NameShort} is still running a tunnel process. Please stop the tunnel before installing.'
else
Result := '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't have a ton of context on this code, but do we have the ability to restart the stopped tunnel processes after the update is done?

Copy link
Member Author

Choose a reason for hiding this comment

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

We do, and do so automatically, if they're running code tunnel. But there are some other commands like code tunnel service log that we prefer to kill and don't have a way of restoring, which is what the original issue was about. This catches these.

@connor4312 connor4312 merged commit cbb4712 into main Jul 12, 2023
@connor4312 connor4312 deleted the connor4312/issue-183715 branch July 12, 2023 18:58
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tunnel service log blocks the vscode update
3 participants