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

Copy qualified name` doesn't work correctly #24

Open
mojo2012 opened this issue Aug 10, 2021 · 5 comments
Open

Copy qualified name` doesn't work correctly #24

mojo2012 opened this issue Aug 10, 2021 · 5 comments

Comments

@mojo2012
Copy link

Hi,

when using the Copy qualified name command I always end up having io.github.jiangdequan in my clipboard, regardless of where my cursor in a java class is.

It seems that this is used as a default value in case something goes wrong. In that case it would be better to just show a notification.

@enilu
Copy link

enilu commented Sep 9, 2021

I also encountered the same problem, and i use VSCode Copy fully qualified name instead of that。

@jiangdequan
Copy link
Owner

Hi,

when using the Copy qualified name command I always end up having io.github.jiangdequan in my clipboard, regardless of where my cursor in a java class is.

It seems that this is used as a default value in case something goes wrong. In that case it would be better to just show a notification.

Yes, it will return the default value if the extension can not parse the path correctly.
If you meet the problem again, please show me the full path of the class.

@mojo2012
Copy link
Author

A better way would be to show an error, instead of misleading the user that everything went fine only to realize on paste that in fact there is a problem.

@jiangdequan
Copy link
Owner

It's a good idea!I will add it in next version.

@pbodnar
Copy link

pbodnar commented Mar 5, 2024

Also, unlike the extension linked above, this one just always copies the FQN of the currently opened class - instead of FQN of the thing at cursor.

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

4 participants