I am using VSCode and JavaScript ES6 Modules.
If I autocomplete an import like this import * as test from './test'
the .js ending on ./test is missing and I have to add it manually.
Is there a setting to automatically add the extension?
I am using VSCode and JavaScript ES6 Modules.
If I autocomplete an import like this import * as test from './test'
the .js ending on ./test is missing and I have to add it manually.
Is there a setting to automatically add the extension?
Add this to your settings.json
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
Or in the Settings UI