errors thrown by openerService.resolveExternalUri not surfaced to MainThreadWindow.$asExternalUri in VS Code Web #162770
Labels
bug
Issue identified by VS Code Team member as probable bug
help wanted
Issues identified as good community contribution opportunities
opener
Opener service issues
Milestone
main
)Steps to Reproduce:
git clone https://github.com/microsoft/vscode.git
asExternalUri
(i.e. this one)Expected
Should log error thrown
'Could not resolve external URI: ' + resource.toString()
Actual
Nothing
Notes
I believe this happens because there is no
try/catch
block here:https://github.com/microsoft/vscode/blob/main/src/vs/workbench/api/browser/mainThreadWindow.ts#L63
When you add a
try/catch
block there like so:Then it logs the thrown error
Screenshot
![image](https://user-images.githubusercontent.com/3806031/194153310-89376d1a-1938-4a44-ae20-6aacb9499628.png)
Would you accept a PR to fix this?
The text was updated successfully, but these errors were encountered: