Closed
Description
Issue Type: Bug
Prerequisites: Enable format on paste and on type for JavaScript files.
- In a JavaScript file, enter:
match(/x/);
- Copy the "x" with Ctrl+C
- After the "x", paste with Ctrl+V
The entire regular expression now disappears. Also happens with much longer lines and regexps. A similar issue also exists in JavaScript sections of .cshtml files in Visual Studio 2022, where pasting also deletes parts of the code. Is there a pattern behind that? Microsoft products now eating my code. All of them!
VS Code version: Code 1.69.2 (3b889b0, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3400) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 15.71GB (5.85GB free) |
Process Argv | --crash-reporter-id 1b00a758-578c-4b77-a258-fe145c18e004 |
Screen Reader | no |
VM | 29% |
Extensions (22)
Extension | Author (truncated) | Version |
---|---|---|
esp-idf-extension | esp | 1.4.0 |
vscode-todo-highlight | jgc | 2.0.4 |
cmake-language-support-vscode | jos | 0.0.4 |
ecdc | mit | 1.8.0 |
vscode-language-pack-de | MS- | 1.69.7130931 |
csharp | ms- | 1.25.0 |
vscode-dotnet-runtime | ms- | 1.5.0 |
python | ms- | 2022.10.1 |
vscode-pylance | ms- | 2022.7.30 |
jupyter | ms- | 2022.6.1201981810 |
jupyter-keymap | ms- | 1.0.0 |
jupyter-renderers | ms- | 1.0.8 |
remote-containers | ms- | 0.241.3 |
remote-ssh | ms- | 0.84.0 |
remote-ssh-edit | ms- | 0.80.0 |
remote-wsl | ms- | 0.66.3 |
vscode-remote-extensionpack | ms- | 0.21.0 |
cmake-tools | ms- | 1.11.26 |
cpptools | ms- | 1.10.8 |
better-pageup-pagedown | rus | 0.0.1 |
jinjahtml | sam | 0.17.0 |
cmake | twx | 0.0.17 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
pylanb8912:30529769
vsclangdf:30486550