Bug Report
π Search Terms
javascript.preferences.importModuleSpecifierEnding
π Version & Regression Information
- This changed between versions
4.9.5 and 5.0.2
β― Playground Link
n/a
π» Steps to reproduce
- Set vscode's
javascript.preferences.importModuleSpecifierEnding preference to "js"
- Set
typescript.preferences.importModuleSpecifierEnding to "auto"
- Type the name of a function inside of a JavaScript file and press enter to automatically import it
π Actual behavior
The import path is missing .js at the end.
π Expected behavior
The import path includes .js at the end. It seems as though vscode thinks all .js files are actually .ts files in regard to this preference. Because when I set typescript.preferences.importModuleSpecifierEnding to "js" my imports behave as expected.
When I switch the TypeScript version to the one bundled with vscode, the issue is resolved.
Bug Report
π Search Terms
javascript.preferences.importModuleSpecifierEnding
π Version & Regression Information
4.9.5and5.0.2β― Playground Link
n/a
π» Steps to reproduce
javascript.preferences.importModuleSpecifierEndingpreference to "js"typescript.preferences.importModuleSpecifierEndingto "auto"π Actual behavior
The import path is missing .js at the end.
π Expected behavior
The import path includes .js at the end. It seems as though vscode thinks all .js files are actually .ts files in regard to this preference. Because when I set
typescript.preferences.importModuleSpecifierEndingto "js" my imports behave as expected.When I switch the TypeScript version to the one bundled with vscode, the issue is resolved.