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

Wrong result when paste string on specific pattern string #150340

Closed
scott20145 opened this issue May 25, 2022 · 3 comments
Closed

Wrong result when paste string on specific pattern string #150340

scott20145 opened this issue May 25, 2022 · 3 comments
Assignees
Labels
formatting Source formatter issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@scott20145
Copy link

Issue Type: Bug

target string:

`${ this._key }-edgeColor`

When I select "edgeColor" and try to paste anything
target string after paste:

`${ this._key

the expected result should be:

`${ this._key }-anything`

VS Code version: Code 1.67.1 (da15b6f, 2022-05-06T12:37:16.526Z)
OS version: Darwin x64 19.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-1030NG7 CPU @ 1.10GHz (8 x 1100)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 2
Memory (System) 8.00GB (0.09GB free)
Process Argv --crash-reporter-id 3a81b38f-58c9-4321-9a30-7b3a8e2ba491
Screen Reader no
VM 0%
@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.67.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@scott20145 scott20145 changed the title Wrong result when pase string on specfic pattern string Wrong result when paste string on specific pattern string May 25, 2022
@deepak1556 deepak1556 assigned alexdima and unassigned deepak1556 Jun 10, 2022
@alexdima
Copy link
Member

This works OK for me in a plain text file. I think I saw a TS bug around format-on-paste in this area.

@alexdima alexdima assigned mjbvz and unassigned alexdima Jun 10, 2022
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 27, 2022

Duplicate of microsoft/TypeScript#50076

@mjbvz mjbvz marked this as a duplicate of microsoft/TypeScript#50076 Jul 27, 2022
@mjbvz mjbvz closed this as completed Jul 27, 2022
@mjbvz mjbvz added typescript Typescript support issues formatting Source formatter issues upstream-issue-linked This is an upstream issue that has been reported upstream labels Jul 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
formatting Source formatter issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

5 participants