Copy qualified name` doesn't work correctly
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.
I also encountered the same problem, and i use VSCode Copy fully qualified name instead of that。
Hi,
when using the
Copy qualified namecommand I always end up havingio.github.jiangdequanin 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.
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.
It's a good idea!I will add it in next version.
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.