Vscode: URL protocol: confirmation dialog

Created on 20 Apr 2020  路  3Comments  路  Source: microsoft/vscode




Is there any way to open files by URL without confirmation?
It starts from 1.44 version and has no "Always open" checkbox.
When you need to open a lot of files with URL its not comfortable to click "Yes" every time.

  • VSCode Version: 1.44
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open link "vscode://file/path"
  2. See the confirmation dialog "An external application wants to open 'path' in Code. Do you want to open this file or folder?"


Does this issue occur when all extensions are disabled?: Yes

Most helpful comment

Alternatively, can you add trusted locations option?

All 3 comments

See #95252 which arrived in 1.44.1

I have a situation where this is forcing me to answer the question twice. I have an internal tool that generates an HTML page shown in Chrome with links similar to the one I have pasted below. The link points to the line number, column and file that is opened in VSCode when I click on the link from and HTML page that I display through Chrome. Back when I built the tool, I spent quite a while trying to stop Chrome from prompting me each time I open the file but just learned to live with it. Now that this has been added to VSCode, anytime I try to open an html link from Chrome to VSCode I am prompted once by Chrome and then a second time by VSCode. I wish both programs had an option to allow bypass without confirmation but it now appears that links like <a href='vscode://file/D:\OSPOS5\Shared\Build\Settings.Build.props:13:5'>.\Shared\Build\Settings.Build.props</a> are of little value due to the double prompt. I appreciate the security concerns but we are all advanced developers who should be able to bypass impractical annoyances like this. Can we please have a setting for this?

Alternatively, can you add trusted locations option?

Was this page helpful?
0 / 5 - 0 ratings