soates/Auto-Import

Imports existing type from current file

Opened this issue · 0 comments

psnet commented

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.