Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display JS file icon for .mjs file extensions #37

Closed
calebjacob opened this issue May 24, 2018 · 1 comment
Closed

Display JS file icon for .mjs file extensions #37

calebjacob opened this issue May 24, 2018 · 1 comment

Comments

@calebjacob
Copy link

Hey there!

ES Modules are starting to receive native support for Node as you can read here: https://nodejs.org/api/esm.html

Long story short, most JS files in Node projects will now be using the .mjs file extension instead of just .js - to enable use of ES Modules. Is there a way to display the JS icon next to .mjs files in the sidebar? Right now there's just a generic star icon.

Thanks for all the great work!

@calebjacob
Copy link
Author

This appears to have fixed itself somehow. After I restarted Sublime Text 3, all .mjs files started displaying the JS icon in the sidebar. I did select "Open all with current extension as..." and selected JavaScript. Maybe doing that and restarting Sublime Text somehow fixes this magically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant