Repository: vscode
Issue: Custom Emmet snippets wrap selected text incorrectly
Labels: bug,emmet,confirmed

Type: <b>Bug</b>

I have a piece of text, that I wrap in HTML using my Emmet snippets (snippets.json), line by line, or by blocks of lines. In previous versions of VSC, I selected a line `(Ctrl+L)`, called Emmet:wrap with abbreviation and used my html snippet, like `"ep": "tr*>td>p{$#}"`. It placed my text in the last element of generated snippet (in this case, `<p>`, nested in `<td>`, nested in `<tr>`).
After VSC update, snippet still works (expands), but places my text inside of `<tr>`, so my html looks like `<tr>myText<td><p></p></td></tr>`, which is not what I want. I tried fiddling with curly braces, removing `*` and `${#}`,  from my snippet code, no good. But: if a input `tr>td>p` directly in Emmet:wrap with abbreviation command line, it works fine.
In most cases, I can switch to VSC snippets, but for formatting lists (`ul>li*`) and other multiple-line blocks wrapping with custom Emmet snippets is irreplaceable(
This https://docs.emmet.io/actions/wrap-with-abbreviation/#controlling-output-position doesn't work as expected for snippets, defined in my snippets.json.

VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.85GB (4.15GB free)|
|Process Argv|--crash-reporter-id b40fd9ec-be6f-4cc6-b5ab-ab657ec39501|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (6)</summary>

Extension|Author (truncated)|Version
---|---|---
laravel-blade|cjh|1.1.2
prettier-vscode|esb|9.9.0
easy-snippet|inu|0.6.3
theme-monokai-pro-vscode|mon|1.2.0
data-workspace-vscode|ms-|0.3.0
px-to-rem|sai|1.3.1


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyonecf:30548226
pyindex848cf:30577861
nodejswelcome1:30587005
3biah626:30602489
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
f6dab269:30613381

```

</details>

<!-- generated by issue reporter -->