-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Closed
Labels
editor-clipboardEditor clipboard issuesEditor clipboard issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersios-ipadossafariIssues running VSCode in Web on SafariIssues running VSCode in Web on SafariwebIssues related to running VSCode in the webIssues related to running VSCode in the web
Milestone
Description
- VSCode Version: Codespaces
- OS Version: MacOS Catalina and iPadOS 13
Steps to Reproduce:
It seems the Clipboard API is not working, at least using Safari
- Create an extension using the Clipboard API which as documented, should be used on Remote Development:
env.clipboard.writeText(editor.document.getText(editor.selection));
- Open Codespaces and install the extension (My
alefragnani.copy-word
extension does exactly that) - Use its command
Copy Word: Copy
, which will select the word where the cursor is located and should copy the selected text to clipboard - Navigate to other location
- Run
Paste
command (or useCmd V
shortcut) - Doesn’t work: instead of pasting the the newly selected/copied text, it pastes the previous clipboard content (not created using the extension)
- I tested on iPadOS 13 and MacOS Catalina and it fails.
- I tested on Edge (Chromium) and it works perfectly (I guess it should work on Chrome too)
- I didn’t test on Firefox (yet).
BTW, I tried to debug my extension on Codespaces (on iPadOS), but it seems not possible/supported. I’m able to build the extension and hit the Debug button. The Debug toolbar appears but no [development ]
window/tab appears. Is there a way to debug VSCode extensions right from Codespaces?.
As described below, debugging on Desktop (macOS Catalina) works just fine. Safari just blocks the window, but you click the button and the
[development ]
window correctly appears.
Does this issue occur when all extensions are disabled?: Yes
ahmetb
Metadata
Metadata
Assignees
Labels
editor-clipboardEditor clipboard issuesEditor clipboard issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersios-ipadossafariIssues running VSCode in Web on SafariIssues running VSCode in Web on SafariwebIssues related to running VSCode in the webIssues related to running VSCode in the web