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

Provide intellisense and auto import for component names in rsx macro #2602

Closed
mrgzi opened this issue Jul 8, 2024 · 4 comments · Fixed by #2609
Closed

Provide intellisense and auto import for component names in rsx macro #2602

mrgzi opened this issue Jul 8, 2024 · 4 comments · Fixed by #2609
Labels
enhancement New feature or request rsx Related to rsx or the dioxus-rsx crate

Comments

@mrgzi
Copy link

mrgzi commented Jul 8, 2024

Feature Request

While working with the rsx! macro in Dioxus, I frequently find myself uncertain whether I'm typing the component name correctly. This often leads me to navigate back to the file containing the component's definition to copy the exact name, which disrupts the flow of development. Integrating intellisense and auto importing for component names directly within the rsx! macro would significantly improve productivity.

@ealmloff ealmloff added duplicate This issue or pull request already exists enhancement New feature or request rsx Related to rsx or the dioxus-rsx crate and removed duplicate This issue or pull request already exists labels Jul 8, 2024
@ealmloff
Copy link
Member

ealmloff commented Jul 8, 2024

Autocomplete was fixed in #2421 which also lets RA import items as you type

@ealmloff ealmloff closed this as completed Jul 8, 2024
@mrgzi
Copy link
Author

mrgzi commented Jul 8, 2024

@ealmloff It doesn't work for me and I use dioxus main branch.

@ealmloff
Copy link
Member

ealmloff commented Jul 8, 2024

@ealmloff It doesn't work for me and I use dioxus main branch.

Do you use rust analyzer?

@mrgzi
Copy link
Author

mrgzi commented Jul 8, 2024

Yes, I think it does work if you use component in the same file. If component is in another file, it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rsx Related to rsx or the dioxus-rsx crate
Projects
None yet
2 participants