Describe the bug
After setting Markdown preview as the default editor for "*.md" files, opening a Markdown file using the :e or:vsp command does not respect that setting. Instead, they are opened using the text editor.
To Reproduce
Steps to reproduce the behavior:
Open a Markdown file
Open the command palette (default shortcut: Control + Shift + P)
Type "reopen editor" in palette search bar
Click on "View: Reopen Editor With..."
Click on "Configure default editor for '*.md'...
Click on "Markdown Preview"
Markdown file should now be open as a Markdown preview.
Now close file and reopen using ":e .md" command (Replace with the actual name of the markdown file)
Notice that the file doesn't open using Markdown preview, but instead uses the text editor
Close file
With the file explorer open on the left-hand sidebar in VSCode, double-click on the Markdown file to open it
Notice that the file is opened using the Markdown preview, which is the selected default editor that was set in steps 4-6
Expected behavior
I expect the ":e" and ":vsp" commands to respect the default editor settings and (in this specific case) open the Markdown file using the Markdown preview instead of the text editor.
Environment (please complete the following information):
Describe the bug After setting Markdown preview as the default editor for "*.md" files, opening a Markdown file using the
:e
or:vsp
command does not respect that setting. Instead, they are opened using the text editor.To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the ":e" and ":vsp" commands to respect the default editor settings and (in this specific case) open the Markdown file using the Markdown preview instead of the text editor.
Environment (please complete the following information):