Surrounding pair doesn't work with invalid empty lambda #2291
Closed
Description
In the following Typescript code:
(() => ())
Saying "take pair"
from the =>
should select the whole line, but just gives an error. I don't believe this is valid Typescript (something needs to be between second pair of inner parens for it to be a valid lambda), but it should still be handled correctly by our code that is supposed to fall back to textual when in an error node