jtulach opened a new pull request, #9427:
URL: https://github.com/apache/netbeans/pull/9427

   While working with modern JavaScript I noticed increased presence of files 
with `.mjs` and `.cjs` extensions. The leading `m` signals to the JavaScript 
engine that the file is supposed to be treated as [ECMAScript 
module](https://nodejs.org/api/esm.html). The leading `c` signals 
[CommonJS](https://en.wikipedia.org/wiki/CommonJS) module. The same pattern 
seems to emerge in TypeScript as well. Let NetBeans extensions for JavaScript 
and TypeScript support module be expanded to cover these widely used extensions!
   
   - I took copied the actual list of extensions from 
https://github.com/microsoft/vscode/blob/db81a24a9eabe181928830b72567387ef1bf81b5/extensions/typescript-language-features/src/configuration/languageDescription.ts#L36
   - another indication `.mjs` is needed: 
https://github.com/oracle/graaljs/blob/33e69fbb659cc796867cf17f0adcc89d05bfe0e9/graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/lang/JavaScriptLanguage.java#L168
   
   Previously I always expanded the list of extensions manually in 
_Tools/Options_, but given how frequent they have become I believe enlisting 
them by default would improve the UX.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to