vscode-office icon indicating copy to clipboard operation
vscode-office copied to clipboard

[BUG] Git Diff doesn't show diff in markdown, but renders it

Open deepaksood619 opened this issue 1 year ago • 4 comments

  • OS: MAC
  • Extension Version: 2.9.5 2023-1-12

Git diff should show diff i.e. changes instead of rendering it in markdown

deepaksood619 avatar Jan 23 '23 18:01 deepaksood619

I also need to disable this extension for the moment

copdips avatar Jan 27 '23 22:01 copdips

Same for me. There should be at least a setting for this, the (Working Tree) comparison with markdown is unreadeable.

antoHuman avatar May 05 '23 09:05 antoHuman

Also looking for a solution here

MallocArray avatar Jan 04 '24 15:01 MallocArray

According to https://github.com/microsoft/vscode/issues/138525#issuecomment-1847679100, diff editor has its own resource url git:/... or gitlens:/..., so can be specified to use default editor view in workbench.editorAssociations:

    "workbench.editorAssociations": {
        "{git,gitlens}:/**/*.{md,csv}": "default"
    },

As such vscode-office's rendering is disabled in diff view.

NOTE: Due to a bug in vscode: editorResolverService.ts#L166-L181, specifying different editor type for normal view and diff view will make both page in diff view regress into default view. This is because in diff view, left side url is git:/..., while right side url is actually file:/....

Vigilans avatar Jan 06 '24 08:01 Vigilans

@Vigilans Thank you for providing it, this setting has been automatically configured in the latest version 3.2.0.

cweijan avatar Mar 04 '24 04:03 cweijan