Skip to content

Run subprocesses async in vscode extension #18281

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
Oct 12, 2024

Conversation

darichey
Copy link
Contributor

Extensions should not block the vscode extension host. Replace uses of spawnSync with spawnAsync, a convenience wrapper around spawn.

These spawnSyncs are unlikely to cause a real issue in practice, because they spawn very short-lived processes, so we aren't blocking for very long. That said, blocking the extension host is poor practice, and if they do block for too long for whatever reason, vscode becomes useless.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 11, 2024
@lnicola
Copy link
Member

lnicola commented Oct 12, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Oct 12, 2024

📌 Commit 0260e41 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 12, 2024

⌛ Testing commit 0260e41 with merge d7628c0...

@bors
Copy link
Contributor

bors commented Oct 12, 2024

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing d7628c0 to master...

@bors bors merged commit d7628c0 into rust-lang:master Oct 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants