Skip to content

Auto imports incorrectly add file extension when a json file is also imported #34620

Closed
@donovanhiland

Description

@donovanhiland

TS Issue template added by @mjbvz

TypeScript Version: 3.7.0-dev.20191021

Search terms:

  • Auto import
  • json

Original issue below


Auto import paths are wrong after having a json file imported

  • VSCode Version: 1.40.0-insider
  • OS Version: 10.14.5

Steps to Reproduce:

  1. Import a json file
  2. Try to import anything else

Here's a repro repo: https://github.com/donovanhiland/json-module-auto-import-issue.git

Trying to auto import the variable in test.ts demonstrates the issue.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions