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
Provide a way to reveal the entire URI in an 'Allow extension to open URI" dialog #239272
The "allow extension to open URI" dialog truncates the URI and doesn't allow a user to inspect it before approval.
From a security point of view a user may want to inspect the entire URI (that's why the prompt is there in the first place, right?) before allowing VS Code to proceed.
I would expect to be able to hover over the URI, or alternatively provide a button to copy the URI back out for inspection. This specific URI was generated programatically, so a user would have no idea its contents.
Steps to Reproduce:
Click on a vscode URI that will trigger this 'open in URI' dialog.
You can do so in Remote - SSH upon failing to connect to a remote, as a part of the 'diagnose with copilot' flow.
Note that you cannot see the entire URI in the trust dialog. Hovering does not reveal the URI
We used to show the entire URL but then changed it in 85ebf1e for #66628.
I do not think that native dialogs give us the option to show a hover, but the custom dialog could allow to put in the link as markdown with a title attribute. We would then have to force the custom dialog use here:
Activity
bpasero commentedon Jan 31, 2025
We used to show the entire URL but then changed it in 85ebf1e for #66628.
I do not think that native dialogs give us the option to show a hover, but the custom dialog could allow to put in the link as markdown with a title attribute. We would then have to force the custom dialog use here:
vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.ts
Lines 206 to 213 in 6b7338d
bpasero commentedon Jan 31, 2025
One idea:
Or alternatively, we just work on having a hover, maybe thats sufficient.
Provide a way to reveal the entire URI in an 'Allow extension to open…
bpasero commentedon Feb 3, 2025
With a custom dialog, we are able to render a tooltip:
PR: #239527
Provide a way to reveal the entire URI in an 'Allow extension to open…
bpasero commentedon Feb 6, 2025
Could you verify this fix in insiders? You can give our preview releases a try from: https://code.visualstudio.com/insiders/