lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
279 stars 25 forks source link

Import from clipboard is broken due to browser clipboard API changes #183

Open Tyriar opened 1 year ago

Tyriar commented 1 year ago

When the command is run it now results in:

Failed to import image from clipboard DOMException: Must be handling a user gesture to use custom clipboard

This wasn't the case before, not sure if it always happened on web or not. Regardless, I should probably fix this in the extension by moving the clipboard access logic for this case to the extension host instead of webview.

ctc-nick commented 1 year ago

Me too. :sunny: Just an empty default color page opens on Windows.

Tyriar commented 1 year ago

I'd like a fix on the VS Code side for this but unfortunately I think it would still not work on vscode.dev. So this is on my end, I need to do the clipboard reading on the extension host side, not the webview side.