Context-Menu COPY is not working in vscode webview, BUT ctrl+c is working fine
See original GitHub issueIssue Type: Bug
Use Case 1:
- Install an extension that uses a Webview (Oracle Developer Tool for VS Code)
- Connect to a Database
- Run any SELECT query
- In Result Tab, we can see the SQL Query that we just ran + Query Result
- Select the SQL Query Text >> Right Click >> COPY
- Paste in any text editor
Expected Result: Text is getting copied to text editor Actual Result: Text is not getting copied to text editor
Use Case 2:
- Install an extension that uses a Webview (Oracle Developer Tool for VS Code)
- Connect to a Database
- Run any SELECT query
- In Result Tab, we can see the SQL Query that we just ran + Query Result
- Select the SQL Query Text >> Press Ctrl+C
- Paste in any text editor
Expected Result: Text is getting copied to text editor Actual Result: Text is getting copied to text editor
VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z) OS version: Windows_NT x64 10.0.18363 Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS) (2 x 2693) |
GPU Status | 2d_canvas: unavailable_software gpu_compositing: disabled_software multiple_raster_threads: disabled_off oop_rasterization: disabled_off opengl: disabled_off rasterization: disabled_software skia_renderer: enabled_on video_decode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software |
Load (avg) | undefined |
Memory (System) | 14.65GB (8.33GB free) |
Process Argv | . --crash-reporter-id 699fa828-d5c2-42a4-95b5-df472e05dbaf |
Screen Reader | no |
VM | 0% |
Extensions (1)
Extension | Author (truncated) | Version |
---|---|---|
oracledevtools | Ora | 21.3.0 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30422343
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30424896
pythonvs932:30410667
vscop804:30404766
vscop453:30404998
vsrem710cf:30416617
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Context-Menu COPY is not working in vscode webview, BUT ...
Context-Menu COPY is not working in vscode webview, BUT ctrl+c is working fine · Select the text · Right Click · Cut+Copy+Paste context...
Read more >July 2022 (version 1.70) - Visual Studio Code
copyLastCommand command is available to allow a keybinding to copy the last command's output (shortcut for Ctrl/Cmd+Shift+Up, Ctrl/Cmd+C, Escape, Ctrl/Cmd+End).
Read more >terminal not working vscode Code Example - Code Grepper
Queries related to “terminal not working vscode” ... vs code The file(s) to paste have been deleted or moved since you copied them....
Read more >Building Webviews for Local Deployment to Oracle Digital ...
In this tutorial you learn how to build single-page applications (SPA) with Oracle JavaScript Extension Toolkit (JET) and how to deploy them to...
Read more >Microsoft is testing an optimized UI for touch devices. - Reddit
Long press with touch on horizontal tabs to bring up the context menu often doesn't work, but shows a stuck long press square....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also seeing this issue with a web view on our extension. It’s really weird, Ctrl+C works perfectly fine, but right-click -> copy does not copy to the clipboard.
I found this, and I think this might be related to the issue:
https://stackoverflow.com/questions/70788421/context-menu-copy-is-not-working-in-vscode-webview-but-ctrlc-is-working-fine
A user replicated this issue while debugging vscode and found out that CTRL+C and right-click->Copy have different implementations.
Does anyone know if there is a workaround for this? Or if there’ll be a resolution soon?
Thanks!
Logan and I ran into this in the hex editor today as well.