Closed tylerbrostrom closed 2 years ago
The com.netscape.javascript-source
UTI is already managed by the application. This is the standard UTI for javascript, valid for extensions "js", "jscript", "javascript", "mjs".
What is the output of this Terminal command?
mdls -name kMDItemContentTypeTree -name kMDItemContentType DRAG_HERE_A_CJS_FILE
output for a cjs
file:
kMDItemContentType = "dyn.ah62d4rv4ge80g4xx"
kMDItemContentTypeTree = (
"public.item",
"dyn.ah62d4rv4ge80g4xx",
"public.data"
)
Also curious about adding support for named extensions cause all of em are already a standard
Unfortunately .mts
format is recognized as a video file (UTI public.avchd-mpeg-2-transport-stream
).
Implemented on release 2.1.12 (61)
Thanks!
cjs
com.netscape.javascript-source
mts
com.microsoft.typescript
cts
com.microsoft.typescript
Background
afaik,
cjs
has been a valid extension since Node.js 12.The
mts
andcts
, however, are brand-new extensions introduced in the upcoming TypeScript 4.7 release.Happy to contribute a PR pending approval of the issue :)