Skip to content

Do not ignore errors from $spawnExtHostProcess - #112033

Merged
Daniel Imms (Tyriar) merged 1 commit into
microsoft:masterfrom
solomatov:error-handling-in-terminal-start
Jan 7, 2021
Merged

Daniel Imms (Tyriar) merged 1 commit into
microsoft:masterfrom
solomatov:error-handling-in-terminal-start

Conversation

@solomatov

Copy link
Copy Markdown
Contributor

The callback from the request accepts error as well as undefined. However, we ignore error, when we call then. This change fixes it.

@solomatov

Copy link
Copy Markdown
Contributor Author

There's a similar issue with the $startExtensionTerminal below in the code.

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you elaborate a little how to reproduce the issue this causes?

@Tyriar Daniel Imms (Tyriar) added this to the January 2021 milestone Jan 6, 2021
@solomatov

Copy link
Copy Markdown
Contributor Author

Daniel Imms (@Tyriar) It made errors where it was impossible to open shell due to errors/exceptions, much more visible. Instead of showing 'Starting...', it shows error message, which gives more troubleshooting info.

For example, it made it easy to diagnose errors like this: #76542 (comment) (It can't get access to parent process env for some reason).

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's awesome thanks! This should be really helpful on our side too 🙂

@Tyriar
Daniel Imms (Tyriar) merged commit b1877cd into microsoft:master Jan 7, 2021
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 21, 2021
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.

4 participants