Then select everything and run the prettify command on it. Afterwards, the text:
{
"foo"
is what will be selected. Instead all the JSON data that was previously selected should still be selected. In other words, formatting selected data should not change what data is selected.
@ryan-durkin I've updated the code to properly select the range of the newly inserted text following prettification/minification/jsonificiation. Cheers!
Open a new file and enter the text:
Then select everything and run the prettify command on it. Afterwards, the text:
is what will be selected. Instead all the JSON data that was previously selected should still be selected. In other words, formatting selected data should not change what data is selected.