Select text then copy then pasting text in VS Code quarto visual editor mode fails and returns text as undefined

Aperta
#1,191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, vscode

Direzione di ricerca

Start by tracing the Quarto VS Code extension’s visual-editor paste handling and compare it with source-mode paste; the report provides no file or test names. Reproduce on Windows 11 with VS Code 1.140.0 and Quarto extension 1.138.0 by copying text from a side panel into a .md or .qmd visual editor. Done when the pasted text is correct rather than 'undefined'.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug visual-editor
Bug description

Selecting text from a VS Code sidepanel then copying it with Ctr + C, then pasting this text with Ctr + V into an open f.md or .qmd file using the quarto visual editor mode pastes text as 'undefined'.

If I switch to editing in source mode then I can paste the same text from my clipboard successfully.
Would be great to have this fixed so I don't need to switch modes when copying text.

Steps to reproduce

Selecting text from a VS Code sidepanel then copying it with Ctr + C, then pasting this text with Ctr + V into an open f.md or .qmd file using the quarto visual editor mode pastes text as 'undefined'.

Actual behavior

Selecting text from a VS Code sidepanel then copying it with Ctr + C, then pasting this text with Ctr + V into an open f.md or .qmd file using the quarto visual editor mode pastes text as 'undefined'.

Expected behavior

Should paste the text correctly using keyboard shortcuts in visual mode

Your environment

Windows 11
quarto --version 1.10.19
Quarto VS Code Extension 1.138.0
VS Code Version 1.140.0

Lingua principale
TypeScript
Stelle
665
Fork
69
Merge medio
2g 4h
PR unite (30g)
14

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto

Tutte le issue di quarto-dev/quarto

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.