Microsoft/vscode

Can't copy the whole line if there is a null character in it. When trying to copy the entire line, only the part before the null character is copied.

Open

#249,508 opened on May 22, 2025

View on GitHub
 (8 comments) (2 reactions) (1 assignee)TypeScript (10,221 forks)batch import
bugeditor-clipboardhelp wanted

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

Does this issue occur when all extensions are disabled?: Yes

Version: 1.100.2 Electron: 34.5.1 ElectronBuildId: 11369351 Chromium: 132.0.6834.210 Node.js: 20.19.0 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.19045

Steps to Reproduce:

Image

When selecting the entire line, the content after szDisposeFlag=nul is not copied.

Contributor guide