microsoft / vscode

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

Stop opening folders when clicking folder icon from browsers #219665

Open bedantadey17 opened 4 days ago

bedantadey17 commented 4 days ago

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

Steps to Reproduce:

  1. Download something from browser,
  2. click 'Open in Folder'
lramos15 commented 4 days ago

I'm not sure I follow? Are you saying clicking open in folder in the browser opens VS Code?

bedantadey17 commented 4 days ago

open in folder in the browser opens VS Code

precisely yes.

lramos15 commented 4 days ago

Can you attach a simple screen recording? I cannot reproduce this issue

bedantadey17 commented 4 days ago

i temporarily managed to fix it by editing the code.desktop file in usr/share/applications and changing the 'MimeType' and removing the inode/directory in it (currently MimeType=text/plain;application/x-code-workspace;). I have also changed the mimeinfo.cache in usr/share/applications/ and removed code.Desktop from the inode/desktop.

Kind of weird that I have to do this. But atleast it's fixed now. I don't know if this will change after an update.