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

CMD click #10

Open
stephenjason89 opened this issue Oct 17, 2021 · 10 comments
Open

CMD click #10

stephenjason89 opened this issue Oct 17, 2021 · 10 comments

Comments

@stephenjason89
Copy link

CMD click or alt click for windows redirects me to the .component.gen.js file instead of the original file.
Can I force it to directly open the original file??

@fabien-lopes
Copy link

@acidjazz +1

@acidjazz
Copy link
Member

acidjazz commented Nov 4, 2021

@stephenjason89 @fabien-lopes does this happen 100% of the time? I seem to see it happen only 10% of the time for me.

@fabien-lopes
Copy link

@acidjazz 100% of the time for me

@stephenjason89
Copy link
Author

@acidjazz It actually depends. If the component is natively detected by webstorm even without the nuxt-storm plugin, then CMD click opens the file itself. But if it is a component that webstorm wasn't able to detect, then it opens the component.gen.js file

@acidjazz
Copy link
Member

acidjazz commented Nov 5, 2021

@stephenjason89 @fabien-lopes when you click into components.gen.js does clicking the component from there work?

@fabien-lopes
Copy link

@acidjazz Yes, when I click on the component I redirected directly to the components.gen.js file on the line of the the component. From there, I can click on the component to be redirected to his page.

@stephenjason89
Copy link
Author

@stephenjason89 @fabien-lopes when you click into components.gen.js does clicking the component from there work?

@acidjazz oh yes. When at components.gen.js, i can click the link and be redirected to the original component.

@fabien-lopes
Copy link

Hello @acidjazz, any news ?
Many thanks for your help

@stephenjason89
Copy link
Author

@acidjazz Would also want to gently follow up on this matter.

Thank you

@stephenjason89
Copy link
Author

hey @fabien-lopes
I found a solution to this.
Add a component name and everything will work perfectly.
It's just not so nice to add a component name on script setup tag because you'll need another script just for the name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants