Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

Clash with renamed import (with `as` keyword)

Open qria opened this issue 8 years ago • 0 comments

Auto import messes up the renamed imports.

if I have a renamed import like so:

import { A1 as A } from 'a'

and I try to auto-import A2, it becomes:

import { A1asA, A2 } from 'a'

Here's the screenshot reproducing the bug:

may-21-2017 15-24-04

qria avatar May 21 '17 06:05 qria