I believe this isn’t a bug, but an inherent limitation of how obsidian works: it cannot register itself as an app that opens markdown files, because it only deals with what’s inside a vault.
When you tell Windows (or macOS, for that matter) to open a file with Obsidian, all it does is fire up the app.
I don’t know if this can ever be addressed.