question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Context-Menu COPY is not working in vscode webview, BUT ctrl+c is working fine

See original GitHub issue

Issue Type: Bug

Use Case 1:

  1. Install an extension that uses a Webview (Oracle Developer Tool for VS Code)
  2. Connect to a Database
  3. Run any SELECT query
  4. In Result Tab, we can see the SQL Query that we just ran + Query Result
  5. Select the SQL Query Text >> Right Click >> COPY
  6. 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:

  1. Install an extension that uses a Webview (Oracle Developer Tool for VS Code)
  2. Connect to a Database
  3. Run any SELECT query
  4. In Result Tab, we can see the SQL Query that we just ran + Query Result
  5. Select the SQL Query Text >> Press Ctrl+C
  6. 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:open
  • Created 2 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
osobesocommented, Mar 4, 2022

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!

2reactions
connor4312commented, Jan 26, 2022

Logan and I ran into this in the hex editor today as well.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found