Support VS Code’s standard right-click Copy action in integrated preview

Offen
#1,235 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
65/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript, vscode
Bereich
desktop, frontend

Rechercherichtung

Start by tracing the integrated HTML preview’s iframe and the devhost-exec-command clipboard forwarding mentioned in the issue. Check where the wrapper handles webview context-menu events and how the preview relays commands across the iframe boundary. Done when right-clicking selected text opens VS Code’s standard menu with Copy available.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

vscode

Summary

Selecting text in the Quarto extension’s integrated HTML preview does not offer a right-click Copy action.

Steps to reproduce

  1. Open a .qmd document in VS Code.
  2. Open its integrated Quarto preview.
  3. Select text in the rendered document.
  4. Right-click the selection.

Expected behavior

VS Code’s standard context menu appears, allowing the selected text to be copied.

Actual behavior

No context menu with a Copy action appears.

Possible cause

The rendered document runs inside an iframe. Its contextmenu events do not cross that boundary, so VS Code’s webview context-menu listener does not receive them.

Quarto already forwards clipboard commands into the document using devhost-exec-command. Relaying the document’s context-menu event to the wrapper may allow the preview to reuse VS Code’s standard menu and existing clipboard handling.

Vorherrschende Sprache
TypeScript
Sterne
665
Forks
69
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus quarto-dev/quarto

Alle Issues in quarto-dev/quarto

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.