microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
99.22k stars 12.3k forks source link

Create a Typescript Mimetype #25426

Open btd1337 opened 6 years ago

btd1337 commented 6 years ago

Please add a typescript mimetype on FreeDesktop. Currently .ts files are recognize like text/vnd.trolltech.linguist type and VSCode isn't set as default editor for this.

https://freedesktop.org/wiki/Specifications/AddingMIMETutor/

RyanCavanaugh commented 6 years ago

Seems like anyone could do this?

weswigham commented 6 years ago

The issue is that the .ts extension is already officially associated with the "video/mp2t" MIME.

btd1337 commented 6 years ago

shared-mime-info issues should be filed in the freedesktop.org bugzilla.

https://www.freedesktop.org/wiki/Software/shared-mime-info/ https://bugs.freedesktop.org/enter_bug.cgi?product=shared-mime-info

But better than reporting a shared-mime-info issue, the right thing to do for typescript is to submit it to the official IANA registry. From there it propagates to many places, including shared-mime-info. https://www.iana.org/assignments/media-types/

HarrisMBrad commented 2 years ago

@btd1337 running into this issue. RE: refused to execute the script from help/src/index.ts because its MIME type ('video/mp2t') is not executable.