Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import from is incomplete/cut in Suggest Window #91616

Closed
jsanchez-softdepot opened this issue Feb 26, 2020 · 3 comments
Closed

Import from is incomplete/cut in Suggest Window #91616

jsanchez-softdepot opened this issue Feb 26, 2020 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@jsanchez-softdepot
Copy link

When a library has a class or constant with a long name, the source of the class (at the right) gets cut in the suggest window so it's impossible to know from where I'm importing the component.

Many react libraries use the same component names (like Button) and it's important to know the source library of the suggestion for the auto import functionality.

vscode-suggest

STEPS TO REPRODUCE:

  1. Create a react native project.
  2. Add a library or package with a long-name component, such as react-native-screens (which has ScreenStackHeaderBackButtonImage)
  3. Write a component name in a the component render function.

RESULT:
The suggest window will show the name of the functions/components/constants and if there is a long one, such as ScreenStackHeaderBackButtonImage, the source module/library/file will be cut off at the right.

EXPECTED RESULT:
The suggest windows should show the full name of the source module/library/file so I know where i'm importing from.

@vscodebot
Copy link

vscodebot bot commented Feb 26, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@IllusionMH
Copy link
Contributor

/duplicate of #29757 , #29126 and may other.

In meantime just hit Ctrl+Space again or hover over suggestion with mouse and click on ⓘ (Read more... button) to see detailed description of an item which displays full auto-import message.

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 27, 2020
@vscodebot
Copy link

vscodebot bot commented Feb 27, 2020

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Feb 27, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants