Skip to content

Add option to JS/TS path suggestion to complete the file extension instead of only the file name. #112117

@madcampos

Description

@madcampos

When using the import path suggestion, completing the suggestion only adds the file name, not it's extension.

There would be nice to have an option to also add the extension. Some code styles enforce imports with explicit extensions and when using native imports in the browser it needs the extension to resolve to a static file.

In the screenshot below, the suggestions show the file names and also it's extensions.
image

But when the suggestion is selected it only inserts the file name, not the extension.
image

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)javascriptJavaScript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions