-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preference for including file extension on auto imports #24779
Comments
PRs welcomed for adding support of file extension preference |
This has actually existed in TS since #26177, but was never added to typescript-language-features. I just tried it and confirmed it works. |
Question related to microsoft/vscode#90405 - Is there an existing configuration that can achieve the same behavior for autosuggest when typing the import statement manually? For example: {
"javascript.preferences.importModuleSpecifierEnding": "js",
} import { someFunction } from './|';
^ when picking a file from suggestions here,
the file extension seems to always be omitted |
I can’t immediately think of a reason why we shouldn’t respect that same setting for module specifier completions. @wsmd would you mind opening a new bug for this? |
Thanks @andrewbranch! Will do! I think it would be nice to have Reported here https://github.com/microsoft/vscode/issues/97106 |
Search Terms
Suggestion
From microsoft/vscode#51259
Add a preference to include file extensions on auto import paths.
Use Cases
File extensions are required when working with browsers.
Examples
a.js
:b.js
Trigger auto import on
abc
inb.js
to get:The text was updated successfully, but these errors were encountered: