Skip to content

Commit

Permalink
Add mts and cts to TypeScript language extensions
Browse files Browse the repository at this point in the history
FIX: Include .mts and .cts as TypeScript file extensions.
  • Loading branch information
shshaw authored Feb 7, 2024
1 parent 998599c commit 4b1e273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const languages = [
LanguageDescription.of({
name: "TypeScript",
alias: ["ts"],
extensions: ["ts"],
extensions: ["ts","mts","cts"],
load() {
return import("@codemirror/lang-javascript").then(m => m.javascript({typescript: true}))
}
Expand Down

0 comments on commit 4b1e273

Please sign in to comment.