microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.08k stars 29.21k forks source link

Cannot open links on latest Snap #232763

Open rdong8 opened 4 days ago

rdong8 commented 4 days ago

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

Steps to Reproduce:

  1. Install latest VSCode snap
  2. Try clicking on any link that opens in the browser (tested with Firefox)
  3. Observe crash

https://github.com/user-attachments/assets/d6a7d694-d997-4a7c-bfad-86133be36599

kushal-chavan commented 4 days ago

I do not see this issue on Version 1.95.0 OS: Windows 10

bpasero commented 3 days ago

But the alert indicates that Firefox crashed so how is this related to VS Code?

rdong8 commented 3 days ago

It only happens to VS Code, and only since the latest update to the Snap. I can open browser links from any other application (ie. clicking from telegram or signal).

bpasero commented 3 days ago

Does it help if you configure the browser via the workbench.externalBrowser setting?

rdong8 commented 3 days ago

Setting it to firefox (accessible in $PATH on my system) causes links to not do anything at all.

bpasero commented 3 days ago

Please see if you can find any logged output that could help us find the source of the issue:

Thanks!

rdong8 commented 2 days ago

logs.zip

bpasero commented 2 days ago

I do not see an obvious error logged, I would try to follow up with Firefox to see if there is a way to get more info why FF crashes.

rdong8 commented 2 days ago

Can I know what command is being run when I click on a link in VS Code?

bpasero commented 2 days ago

We use an Electron API: https://www.electronjs.org/docs/latest/api/shell#shellopenexternalurl-options