arvi / Agila-Theme

A Sublime Text 3 UI Theme
MIT License
253 stars 50 forks source link

Display JS file icon for .mjs file extensions #37

Closed calebjacob closed 6 years ago

calebjacob commented 6 years ago

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 commented 6 years ago

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.