The auto-import completion feature sometimes adds the .js extension, but not all the time. However, without the extension in the TypeScript source, the tsc compiler won't add the extension to the emitted JavaScript file which can create run-time issues such as module not found error.
For details of the problem please refer to: Appending .js extension on relative import statements during Typescript compilation (ES6 modules).
The question is: is there any way to configure the automatic import completion feature to force to append the.js extension in the import statements? Or are there any add-ons or VS Code extensions that can achieve this?
This minor thing has been extremely annoying at times!