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

Đang mở
#1,235 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vscode
Lĩnh vực
desktop, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
665
Fork
69
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto

Tất cả issue của quarto-dev/quarto

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.