LuaSnip icon indicating copy to clipboard operation
LuaSnip copied to clipboard

vs code transform error

Open tofulm opened this issue 1 year ago • 12 comments

this snippet is OK

	"aa": {
		"prefix": "aa",
		"body": "$1 (${1/(.*)/${1:/upcase}/}) $0"
	},

=> john (JOHN)

But :

	"bb": {
		"prefix": "bb",
		"body": "(${1/(.*)/${1:/upcase}/}) $0"
	},

=> (john)

why is it mandatory to have $1 for the transformation to work

In vscodium, it works

tofulm avatar Jun 19 '23 10:06 tofulm