Skip to content

New line characters remain in "Copy Value" when debugging Node.js app #241008

@Nefcanto

Description

@Nefcanto

Type: Bug

1- Debug a Node.js app (I'm debugging it inside a Docker container using Dev Containers)
2- Write a multi-line string. For example:

const query = `
    select *
    from Customers
    where Name like "%John%"
`

3- Now use the Copy Value from the context menu to copy the value of this constant
4- You should see that it's a bad string containing all the new lines as \n

VS Code version: Code 1.97.0 (33fc5a9, 2025-02-04T22:41:26.688Z)
OS version: Linux x64 6.11.0-17-generic
Modes:
Remote OS version: Linux x64 6.11.0-17-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (4 x 2893)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 2, 2
Memory (System) 15.53GB (7.10GB free)
Process Argv /HolismHolding/ --crash-reporter-id 76b78ce3-d6d4-4fdc-8587-565fa7247f98
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Item Value
Remote Container holism/node-api:latest (HolismAdminPostgresApi)
OS Linux x64 6.11.0-17-generic
CPUs Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (4 x 2893)
Memory (System) 15.53GB (7.10GB free)
VM 0%
Extensions (1)
Extension Author (truncated) Version
remote-containers ms- 0.394.0
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputscf:31238124
customenabled:31237564
5a9hg449:31230677
9064b325:31222308
copilot_t_ci:31222730
jda6j935:31233686

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions