Extensionless file with the same name as note opens instead of note when making link

When creating a link to a .md file sharing the same name as an extensionless file, the extensionless file is prioritised over the Markdown file and is opened in the default text editor. This is not what I expected to happen, but if this is intended behaviour, feel free to close the bug ofc.

This was discovered as part of an issue for my plugin which uses openLinkText, but it is reproducible merely by using links on a vanilla Obsidian vault so I have decided to report it here.

Steps to reproduce

  • Open sandbox vault
  • Create a file in the OS file browser without an extension, but with the same name as a Markdown note
  • Link to said note
  • Click the link

Did you follow the troubleshooting guide? Y

Expected result

The note is opened in Obsidian.

Actual result

The external file is opened in the OS text editor.

Environment

SYSTEM INFO:
	Obsidian version: v1.3.7
	Installer version: v1.3.5
	Operating system: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 22.5.0
	Login status: logged in
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 11
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Additional information