I tried creating a snippet that lets you remove parts selectively and got this IMO wrong behaviour.
Current Behaviour
Defining the snippet like this causes placeholder $2 to select the wrong character range if I edit placeholder $1. It does not matter if the length of the placeholder changes.
I tried creating a snippet that lets you remove parts selectively and got this IMO wrong behaviour.
Current Behaviour
Defining the snippet like this causes placeholder
$2
to select the wrong character range if I edit placeholder$1
. It does not matter if the length of the placeholder changes.Expected Behaviour
If I add a space between
$1
and$2
the selection works as expected.To replicate the issue, you can check out my fork of the atom-soy package, which includes both snippets.
I am using atom 1.9.8, all packages are up to date.