Skip to content

Preference for including file extension on auto imports #24779

Closed
microsoft/vscode
#90405
@mjbvz

Description

@mjbvz

Search Terms

  • Auto imports
  • Preferences
  • File extensions

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:

export const abc = 123;

b.js

abc|

Trigger auto import on abc in b.js to get:

import { abc } from './a.js'

abc

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScriptVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestoneVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions