Repository: vscode
Issue: On transforming the text case everything is mugged up in single line. 
Labels: help wanted

Type: <b>Bug</b>

I have this code in camel case. 
![image](https://github.com/user-attachments/assets/536f5abb-1729-4e2d-ae8e-cb416d6de2db)


When I do `ctrl + shift + P` and type `transform` , I get suggestions to convert it to `snake case`.  

![image](https://github.com/user-attachments/assets/15f4826c-ee23-44df-a97b-de649546f29b)

On transforming it works perfectly. 
![image](https://github.com/user-attachments/assets/16bdfed2-8fa1-4c33-b305-767b5cf53e6a)


###  BUT BUT BUT 

On transforming back to the pascal case , everything is mugged up in the same line , also keywords should be ignored but it changes it also. 

![image](https://github.com/user-attachments/assets/a3668533-a849-40bd-a330-52bd3118a3f1)

## Please look into it .  Thanks 
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i5-12500H (16 x 3110)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<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_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.69GB (4.54GB free)|
|Process Argv|--crash-reporter-id 5767e645-bcaf-493d-905a-ce91fe543ffb|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (41)</summary>

Extension|Author (truncated)|Version
---|---|---
better-comments|aar|3.0.2
vscode-tailwindcss|bra|0.12.10
simple-react-snippets|bur|1.2.8
vscode-notes|dio|1.2.1
competitive-programming-helper|Div|2024.7.1722430096
bracket-pair-toggler|dzh|0.0.3
prettier-vscode|esb|11.0.0
auto-close-tag|for|0.5.15
code-runner|for|0.12.2
vscode-javac|geo|0.2.46
mongodb-vscode|mon|1.8.1
python|ms-|2024.14.0
vscode-pylance|ms-|2024.9.2
jupyter|ms-|2024.8.1
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.19
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
cpptools|ms-|1.21.6
cpptools-extension-pack|ms-|1.3.0
live-server|ms-|0.4.15
prisma|Pri|5.19.1
java|red|1.34.0
vscode-microprofile|red|0.12.0
vscode-quarkus|red|1.18.1
LiveServer|rit|5.7.9
es7-react-js-snippets|rod|1.9.3
sonarlint-vscode|Son|4.10.0
ayu|tea|1.0.5
pdf|tom|1.2.2
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.3.1
vscode-gradle|vsc|3.16.4
vscode-java-debug|vsc|0.58.0
vscode-java-dependency|vsc|0.24.0
vscode-java-pack|vsc|0.29.0
vscode-java-test|vsc|0.42.0
vscode-maven|vsc|0.44.0
vscode-icons|vsc|12.9.0
Java-extension-pack|wal|1.0.0
markdown-pdf|yza|1.5.0

(4 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
flightc:31134773
wkspc-onlycs-t:31132770
nativeloc1:31134641
wkspc-ranged-c:31125598
cf971741:31144450
fje88620:31121564
iacca2:31144504

```

</details>

<!-- generated by issue reporter -->