Opening .xcworkspace file, shows up as a package in Xcode Open Recent list, instead of a workspace

Normally, when opening an .xcworkspace file, it shows up normally in Xcode Recent, as an .xcworkspace.


But as soon as the folder contains a Package.swift file, even when you open an .xcworkspace, the Recent list behaves as if the Package.swift file was opened.


How do I stop Xcode from doing this?

It's incredibly annoying, rendering the Recent list pretty much useless.

The Package.swift file does not contain the same targets as the .xcworkspace does, so I cannot browse the code.

(And no, I can't just delete the .xcworkspace, because it contains more targets than the Package.swift file declares)

Opening .xcworkspace file, shows up as a package in Xcode Open Recent list, instead of a workspace
 
 
Q