DiffWidget: Use fileName to get syntax definition
Using mimeType can give bad results in some situations. E.g., mimetype for a .ts file will be qt-linguist, but the file can be a typescript file and thus KSH will fail to give the correct definition. Using the file extension can give better results. (cherry picked from commit b22716a0)
parent
f946b720
Please register or sign in to comment