-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Format selection (and thus format-on-paste) causes destructive edits #50076
Comments
Confirmed with Here's the sequence of events for pasting
|
Seems very similar to #48006 |
Simpler repro is const x = `${0}abc`; Select Note that:
|
Another similar one foo(`${0} `)
|
First appears on It's been in the product for over 8 months so I guess I feel weird labeling it "High Priority", but I think we should get it fixed for 4.8 |
Issue Type: Bug
Create a simple template string in a Javascript or Typescript file as below
Copy any text and paste anywhere after the closing expression bracket "}". All text including the last "}" is deleted.
In my example I've copied the word "TEST_STRING " by double clicking on it. I've tried pasting just before the end back tick
If you press undo the expected initial result is shown.
VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Extensions: none
The text was updated successfully, but these errors were encountered: