You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Command (and other callback) exceptions should be reported to the debug console #86109
When exception happens during command execution, nothing is printed anywhere, and it's pretty hard to understand what's going on.
What do you think about catching exceptions on the extension/vscode boundary, and reporting them into the console? If you are ok, then would you be open to accepting PRs adding such reporting?
It depends ;-) The extHostCommands logic doesn't catch/handle error but relies on the caller to handle them correctly. I think that's a good approach because error handling often differs from caller to caller. So, it depends what are trying and where are seeing error going unnoticed?
Johannes Rieken (@jrieken) Commands is likely a bad example. I want to make exceptions in callback code more visible, i.e. if some exception happens, I want to see it in the vscode debug console, and be able to navigate to the source files there.
Activity
jrieken commentedon Dec 4, 2019
It depends ;-) The
extHostCommandslogic doesn't catch/handle error but relies on the caller to handle them correctly. I think that's a good approach because error handling often differs from caller to caller. So, it depends what are trying and where are seeing error going unnoticed?solomatov commentedon Dec 4, 2019
Johannes Rieken (@jrieken) Commands is likely a bad example. I want to make exceptions in callback code more visible, i.e. if some exception happens, I want to see it in the vscode debug console, and be able to navigate to the source files there.
bpasero commentedon Dec 10, 2019
Konstantin Solomatov (@solomatov) does this work now given #86617 is merged?
solomatov commentedon Dec 10, 2019
Benjamin Pasero (@bpasero) I just tried, it worked perfectly. Many thanks for your help!