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

Imports existing type from current file

Open psnet opened this issue 3 years ago • 0 comments

VS Code Version: 1.63.2 Auto Import Version: v1.5.4

Description

  • Create new types.ts
  • Add code:
export interface AAAAA {

}
  • Next type:
export interface B {

}
  • inside B start typing:
export interface B {
  aaaaa: AAA
}

and after that you will be suggested for auto import interface AAAAA from this file:

errr1

pressing Enter:

errr2

This not for only this names, it happens with other "normal" names for interfaces. Also this bug not always can be caught.

psnet avatar Jan 09 '22 16:01 psnet