vscode-java-ide icon indicating copy to clipboard operation
vscode-java-ide copied to clipboard

Copy qualified name` doesn't work correctly

Open mojo2012 opened this issue 2 years ago • 5 comments

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.

mojo2012 avatar Aug 10 '21 09:08 mojo2012

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

enilu avatar Sep 09 '21 02:09 enilu

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.

jiangdequan avatar Jan 26 '22 08:01 jiangdequan

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.

mojo2012 avatar Jan 27 '22 08:01 mojo2012

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

jiangdequan avatar Jan 28 '22 02:01 jiangdequan