yatki / vscode-surround

🔥 A simple yet powerful extension to add wrapper templates around your code blocks
https://marketplace.visualstudio.com/items?itemName=yatki.vscode-surround
MIT License
931 stars 39 forks source link

surround w template literal variable working as intended? #95

Closed Hifilo closed 1 year ago

Hifilo commented 1 year ago

The template literal variable command doesn't seem to consider if the selected word is currently in a quoted sentence

Code_6RvlW85TM8

I made a custom one for my use case, but thought I'd pass along the bug.

Cheers

yatki commented 1 year ago

Hmm. That's not an easy fix. Surround only knows the selected text. I think there is no solution for this other than having a custom snippet for just adding ${ ... } without backticks. Thank you very much for reporting this tho 🖖🏻