The `.mjs` extension is used by Node.js and others to denote JavaScript module files, unlike normal `.js` files these files are treated like ES6 modules by default. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3698
-- Commit Summary --
* Add `.mjs` extension for JavaScript
-- File Changes --
M data/filetype_extensions.conf (2)
-- Patch Links --
https://github.com/geany/geany/pull/3698.patch https://github.com/geany/geany/pull/3698.diff
Looks ok to me.
@elextr Great, when can we merge this?
Nobody is full time on this project, its always polite to leave some time for objections.
i would like to have more flexible. e.g. could treat .cmd files as bash or sh files. it's means it's configurable. don't need to choose document type each time.
@creatxrgithub that is not relevant to this PR, please do not hijack existing issues or pull requests, create your own.
@b4n approved this pull request.
LGTM, works and seems a commonly accepted extension
Merged #3698 into master.
@elextr is right that your request is fairly irrelevant to the support of `.mjs` extensions by default, and that you should open your own question on the subject. However, it's trivial enough to warrant answering here *as well*: you can [configure this](https://geany.org/manual/#filetype-extensions) yourself.
github-comments@lists.geany.org