Skip to content

VSCode mixes import and require syntaxes on auto-import #29038

Closed
@naoey

Description

@naoey

In this particular instance I encountered the bug with moment.js.

  • VSCode Version: 1.30.0-insider, 1.29.1
  • OS Version: Windows 10 (1803), macOS 10.14.1

Steps to Reproduce:

  1. Begin typing usage of an un-imported module
  2. Press enter on auto-import intellisense suggestion

Does this issue occur when all extensions are disabled?: Yes

2018-12-01_12-15-51

Above recording is on fresh Insiders install with extensions disabled and being reproduced in a fresh project with just React and moment installed through yarn.

Metadata

Metadata

Assignees

Labels

Domain: TSServerIssues related to the TSServerExperience EnhancementNoncontroversial enhancementsFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScriptVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions