Visual studio code wrong mime type

After installing visual studio, the mimetype is incorrectly defined in the file usr/share/applications/code.desktop.
The above entry will be included. The inode/directory is at fault.
Thus, the desktop icon extension causes unexpected operation.
Clicking on the folder icon loads vscode and not nautilus

It’s not wrong. It can open directories and so can Dolphin, Kate, Gwenview, Filelight, Code - OSS, and Rawtherapee, all of which are registered (in that order) for inode/directory on my KDE system.

Whether GNOME should allow an application to register itself ahead of the default file manager for that type is another question, but I don’t use GNOME so :man_shrugging: . Presumably there is a control panel somewhere that allows you to set the preferred application order .