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

オープン
#1,235 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript, vscode
領域
desktop, frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
665
フォーク
69
平均マージ
1日 8時間
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto のほかの issue

quarto-dev/quarto の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。