fisheva / Eva-Theme

A comfortable and semantic theme.
https://marketplace.visualstudio.com/items?itemName=fisheva.eva-theme
MIT License
457 stars 38 forks source link

[feat] Add support for diff/patch files, close #98 #99

Closed FelixDai closed 1 year ago

FelixDai commented 1 year ago

Both diff files and patch files are parsed with the same language mode. Two colors are used to draw markup.deleted.diff for easy identification

fisheva commented 1 year ago

@FelixDai 能不能提供段 代码示例, 文件类型, 以及merge前后对比图? 让我明白是修改哪里

FelixDai commented 1 year ago

@fisheva 因为merge前没有着色,所以我就不提供对比图了 代码片段来自 Merge tag 'clk-fixes-for-linus' (linux kernel) 和 7-zip-musl.patch (Openwrt)

Dark-Italic light Light-Bold Light-Italic Dark_diff Dark-Bold

fisheva commented 1 year ago

大概理解了, 就是C语言文件类型的diff操作显示? 合并了, 颜色换成了已有的diff颜色, 然后我觉得这类系统提示类文字保持普通样式就好, 所以去掉了italic和bold. 更新到2.1.1版本即可.

我不会写C语言, 所以没本地复现您的截图调试, 您能在2.1.1版本下再截图让我看下效果吗?

FelixDai commented 1 year ago

是的,也不止是C/C++会用到吧,C/C++项目更多直接导入 diff/patch 格式的文件

非常感谢您的 merge,对于我本人来说非常有用

下面是 release 2.1.1 版本的效果: image image

fisheva commented 1 year ago

应该是我感谢您对Eva Theme的贡献 🎉 : D