Description
Files with the .mjs file extension are currently incorrectly not JavaScript syntax highlighted. .mjs is the file extension to use for ECMAScript modules, and is technically important for much of the JS ecosystem of runtimes and tooling including Node.js and TypeScript.
I haven't tested the TypeScript file extensions .mjs and .cts in the editor, but chances are they also have the same bug if .mjs was forgotten.
To Reproduce
- Make a new file
demo.mjs.
- Add to it
const a = true;.
- 👀 look at it and see no JavaScript syntax highlighting.
Expected Behavior
.mjs files are syntax highlighted as JavaScript.
Version Information
CodeEdit: 0.0.3-alpha (36)
macOS: 13.4 (22F66)
Xcode: N/A
Additional Context
No response
Screenshots

Description
Files with the
.mjsfile extension are currently incorrectly not JavaScript syntax highlighted..mjsis the file extension to use for ECMAScript modules, and is technically important for much of the JS ecosystem of runtimes and tooling including Node.js and TypeScript.I haven't tested the TypeScript file extensions
.mjsand.ctsin the editor, but chances are they also have the same bug if.mjswas forgotten.To Reproduce
demo.mjs.const a = true;.Expected Behavior
.mjsfiles are syntax highlighted as JavaScript.Version Information
CodeEdit: 0.0.3-alpha (36)
macOS: 13.4 (22F66)
Xcode: N/A
Additional Context
No response
Screenshots