vscode-scaladex-search icon indicating copy to clipboard operation
vscode-scaladex-search copied to clipboard

Extension not working

Open shotexa opened this issue 3 years ago • 2 comments

I've tried reinstalling it but no luck

https://user-images.githubusercontent.com/12943302/113220793-dddd1200-9294-11eb-8b6c-5c43ef455afd.mov

shotexa avatar Mar 31 '21 22:03 shotexa

Mmm I'm sorry to say I have no idea why it wouldn't work.

The line of code that stores things in the clipboard is there, it's literally just using the vscode API, so there might be a bug with that, and that might be dependant on the vscode version you're using, your OS, etc ...

So I guess depending on how much time you'd like to sink into the issue, you could try to create a trivial vscode extension and call the same API method (vscode.mod.env.clipboard.writeText) and see whether it works or not ? If it works, there might be a problem with the scalajs bindings, if it doesn't work, it's a bug with vscode and should be raised there.

As a workaround, I'd accept a PR that'd modify the information message to also display the list of extensions so that they could be manually copy-pasted. It's not as good a user experience but it's still faster than opening github or maven central in browser...

Baccata avatar Apr 01 '21 06:04 Baccata

A bit old I know, but for anyone else who has this problem like I did, the solution is to make sure you check the checkbox. Just pressing enter does not select it, even though the extension behaves like it does.

You can check it from the keyboard by pressing spacebar when the item is highlighted, then press enter and continue.

ryanmiville avatar Oct 05 '21 17:10 ryanmiville