I have noticed that on Sublime Build 4155 on Windows 10 22H2 (Build 19045.3393), whenever I double-click a C source file (any file with .c extension), even though it opens Sublime (as I have set it as the default program for this extension) it does not open any file at all. What it shows is a new empty Sublime window with no open files.
Instead, if I right-click on the file > Open with Sublime Text, the file opens fine.
I have tried deleting the registry entry for the .c file association (then restart PC) and changing the association via Windows Settings. After setting the file association back to Sublime Text, the issue is not fixed.
The issue does not happen with any other extension (.cpp, .txt, …) but only with .c files.
The issue does not happen if I set Notepad++ to be the default association.
Any ideas on whether this is a Sublime or Windows issue and how to solve it?
Thanks in advance.