microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.51k stars 28.99k forks source link

Cannot view diff for Markdown files #191565

Open Akatroj opened 1 year ago

Akatroj commented 1 year ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Edit markdown file in a git repo
  2. Go to Version Control tab and click the file to show it's diff

The problems:

mjbvz commented 1 year ago

Did you configure workbench.editorAssociations?

Akatroj commented 1 year ago

you are right, I had

  "workbench.editorAssociations": {
    "*.md": "vscode.markdown.preview.editor"
  },

configured

I never had any problems with it though, as I used View: Reopen Editor with whenever necessary, however it doesn't work on diff editor

auphof commented 2 months ago

Auto open in Preview is great with Markdown using workbench.editorAssociations, would be great if opening the file from SourceControl to review changes git diff side by side view could just ignore this