Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting deletes text #155660

Closed
ygoe opened this issue Jul 19, 2022 · 5 comments
Closed

Pasting deletes text #155660

ygoe opened this issue Jul 19, 2022 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) formatting Source formatter issues typescript Typescript support issues upstream-issue-fixed The underlying upstream issue has been fixed

Comments

@ygoe
Copy link

ygoe commented Jul 19, 2022

Issue Type: Bug

Prerequisites: Enable format on paste and on type for JavaScript files.

  1. In a JavaScript file, enter: match(/x/);
  2. Copy the "x" with Ctrl+C
  3. 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

@mjbvz
Copy link
Collaborator

mjbvz commented Jul 20, 2022

Please try upgrading your workspace to use typescript@next by installing this extension. Does that fix the issue?

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Jul 20, 2022
@ygoe
Copy link
Author

ygoe commented Jul 23, 2022

No, still happens.

@mjbvz
Copy link
Collaborator

mjbvz commented Aug 3, 2022

Duplicate of microsoft/TypeScript#50076

Should be fixed with more recent TS nightly builds

@mjbvz mjbvz closed this as completed Aug 3, 2022
@mjbvz mjbvz added typescript Typescript support issues *duplicate Issue identified as a duplicate of another issue(s) formatting Source formatter issues upstream-issue-fixed The underlying upstream issue has been fixed and removed info-needed Issue requires more information from poster labels Aug 3, 2022
@freaker2k7
Copy link

freaker2k7 commented Aug 10, 2022

@mjbvz - Still happens on latest version on MAC 😭

Totally kills my focus !!!

@ygoe
Copy link
Author

ygoe commented Sep 2, 2022

Fixed in VSCode 1.71.0

@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) formatting Source formatter issues typescript Typescript support issues upstream-issue-fixed The underlying upstream issue has been fixed
Projects
None yet
Development

No branches or pull requests

4 participants