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

Unnecessary option to import current file

Open danielbarla opened this issue 8 years ago • 0 comments

Sometimes, auto-import will suggest the current file to import:

image

In this case, the default option / 1st result will add an import statement to the top of the file to import itself. The 2nd option is the class LoginProvider option which doesn't add an import (and the 3rd line is just a superfluous file from a tmp folder which can be ignored for this issue).

This option should probably be removed for the current file. Importing of the current file will simply cause TypeScript compile issues (and relatively confusing ones at that, e.g: Individual declarations in merged declaration 'LoginProvider' must all be exported or all local).

danielbarla avatar Nov 26 '16 13:11 danielbarla