Annoyances are one thing, but this now regularly breaking my code and I’ve already set the script window as the default.
I’m doing soap web service test cases and traversing the xml using find with closures, similar to:
String code = parsed.depthFirst().find{it.@name == 'UNIQUE_NAME'}.text()
Pretty straight forward.
I don’t ever use the manual window with these. But I do routinely add web service objects via the Plus Icon and “Add to existing test case”.
Then, when its added and I’m transferred back to the test case it has changed that line to this:
String code = parsed.depthFirst().find({
== 'UNIQUE_NAME'
}).text()
COMPLETELY BREAKING IT. This is not ‘reformatting’-- it’s deleting code!
I have tons of these and I don’t have them all memorized. I don’t always see it and it becomes a problem to rewrite it if I didn’t think to copy it out first.
I can’t even think of all the untold hours I’ve wasted on this.
Guys, this is a bug-- serious bug. No formatting should DELETE code. Please consider bumping this up in the list of priorities.
Thanks!