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
Breaking change in 1.25 in how external webpages are opened #51358
Comments
This is due to https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/editor/browser/editorService.ts#L238 and looks like it's done on purpose... I'll push a workaround and let @bpasero do the rest. |
@jrieken is this something extension will need to worry about? Or is this purely an internal thing? |
@jrieken your change makes sense to me, the idea was to stay away from having logic to open windows from I think I would even go one step further and just always use the |
Yeah, I would have gone for the opener service but I wasn't sure about all those editor options. I looks like the open-command supports a wide interface, but I might be wrong |
@jrieken I can add those options to the opener service. One sort of breaking change however is that previously we did not support |
That rings a bell - there are security considerations regarding |
Ok, we can preserve the current behaviour and just have a setting in the opener service to not execute command links. |
Just to clarify that you mean an argument, not a property because it is per invocation/call. E.g trusted marked down can run commands, untrusted not |
@jrieken yeah I would make this exclusive to the |
Steps to Reproduce:
vscode.commands.executeCommand('vscode.open', …)
as per guidance in issues like Open an Http Url from extension #9651.Does this issue occur when all extensions are disabled?: Yes
With the release of 1.25, people have started running into this exception - https://github.com/Microsoft/vscode/blob/fea449cc7616ce039e2c7e5845fb60136f84405e/src/vs/workbench/services/editor/browser/editorService.ts#L243.
I believe this is caused when we attempt to open an external browser window for auth. Currently we use
vscode.commands.executeCommand('vscode.open', …)
as per the guidance in issues like this - #9651.I understand from the issue that we should be using
IOpenerService
, but I’m wondering if you can confirm that this is a conscious breaking change and not a regression for this user case (as I can’t find any docs on this).// @bpasero @jrieken
The text was updated successfully, but these errors were encountered: