You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preference for including file extension on auto imports #24779
This has actually existed in TS since #26177, but was never added to typescript-language-features. I just tried it and confirmed it works. From conversation in #28288, though, it sounds like we should maybe consider setting .js endings as the default for JS projects? Matt Bierner (@mjbvz)Daniel Rosenwasser (@DanielRosenwasser) thoughts? (Edit: Actually, I think this would still be a surprising default for most JS users—I don’t think it’s common in Node, and most frontend users still use a bundler.)
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?
I can’t immediately think of a reason why we shouldn’t respect that same setting for module specifier completions. Waseem Dahman (@wsmd) would you mind opening a new bug for this?
Thanks Andrew Branch (@andrewbranch)! Will do! I think it would be nice to have importModuleSpecifierEnding applies for both auto-imports and manual import suggestions 👍
Activity
mhegazy commentedon Jun 8, 2018
PRs welcomed for adding support of file extension preference
andrewbranch commentedon Feb 10, 2020
This has actually existed in TS since #26177, but was never added to typescript-language-features. I just tried it and confirmed it works.
From conversation in #28288, though, it sounds like we should maybe consider setting(Edit: Actually, I think this would still be a surprising default for most JS users—I don’t think it’s common in Node, and most frontend users still use a bundler.).jsendings as the default for JS projects? Matt Bierner (@mjbvz) Daniel Rosenwasser (@DanielRosenwasser) thoughts?wsmd commentedon May 6, 2020
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", }andrewbranch commentedon May 6, 2020
I can’t immediately think of a reason why we shouldn’t respect that same setting for module specifier completions. Waseem Dahman (@wsmd) would you mind opening a new bug for this?
wsmd commentedon May 6, 2020
Thanks Andrew Branch (@andrewbranch)! Will do! I think it would be nice to have
importModuleSpecifierEndingapplies for both auto-imports and manual import suggestions 👍Reported here https://github.com/microsoft/vscode/issues/97106