macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.47k stars 680 forks source link

Fix incorrect UTI registrations #1489

Open jgvanwyk opened 2 months ago

jgvanwyk commented 2 months ago

This is a continuation of #1468. This pull request fixes the incorrect UTI exported/imported UTIs as well as updates CFBundleDocumentTypes to use LSItemContentTypes instead of CFBundleTypeExtensions.

(This is a new pull request because I screwed up the previous repository while trying to synchronise it with the main branch).

jgvanwyk commented 2 months ago

One thing I noticed while updating the CFBundleDocumentTypes was the use of LSIsAppleDefaultForType, which appears to be undocumented (and I would guess is intended to be private). Should this be removed?

eirnym commented 2 months ago

I think it's ok if it's widely used.