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

Add maintainCloudShellConnection command #836

Merged
merged 8 commits into from
Apr 12, 2024
Merged

Conversation

alexweininger
Copy link
Member

  • Update Node typings so we can use the built in fetch
    • Update chokidar types to solve a typing error caused by updating the node types

Added the maintain cloud shell connection command, which is only to be called by vscode.dev. And isn't shown in the palette.

@alexweininger alexweininger requested a review from a team as a code owner April 9, 2024 19:18
src/commands/cloudShell.ts Show resolved Hide resolved
src/commands/cloudShell.ts Show resolved Hide resolved
src/commands/cloudShell.ts Show resolved Hide resolved
}

export async function maintainCloudShellConnection(_context: IActionContext, options: MaintainCloudShellConnectionOptions) {
while (true) {
Copy link
Member

Choose a reason for hiding this comment

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

I kind of have an aversion to while(true) loops for some reason. While I do prefer a recursive setTimeout method, I couldn't find anything really definitive about whether infinite while loops are riskier or not so feel free to keep it this way.

Copy link
Member Author

Choose a reason for hiding this comment

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

I also have an aversion to while(true). I might change it if I get around to it.

@alexweininger alexweininger merged commit 04ba04b into main Apr 12, 2024
3 checks passed
@alexweininger alexweininger deleted the alex/cloudshell branch April 12, 2024 16:19
@microsoft microsoft locked and limited conversation to collaborators May 28, 2024
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.

2 participants