I currently use setCustomValidity against a textarea where I key in the string containing a JSON object.
eg
{ "prop": "value" }
Changing the textarea to a code-input gives J/S errors indicating the function is missing!
Is it something you would consider implementing?
Would it also be easy enough to take attributes from the code-input and apply them to the interior textarea like form, required, maxlength, minlength, cols, rows, wrap, etc.