soates / Auto-Import

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.
MIT License
164 stars 62 forks source link

[BUG] typeimport bug when importing on typed files #101

Open zomars opened 5 years ago

zomars commented 5 years ago

Whenever I try to import something that already has some type imported this happens:

Before import:

import User from '../User';

import type { UserType } from '../User';

After import:

import User from '../User';

import typeimport { otherImport } from '../otherImport'; { UserType } from '../User';

The desired result would be:


import User from '../User';

import type { UserType } from '../User';
import { otherImport } from '../otherImport';

EDIT: I'm using flow BTW.

zomars commented 5 years ago

May be related to #86