There is no JavaScript version of the extractor. The last snippet you asked for in support request would look like:
FILES.chooseDirectoryAndSave( "Choose directory", "Choose where to put generated stuff", new com.intellij.util.Consumer({ consume: function(directory) { com.intellij.openapi.util.io.FileUtil.writeToFile( new java.io.File(directory, "file.txt"), "Hello!" ); FILES.refresh(directory); } }) );
There is a zip with Open API sources available in the /lib/ directory, which you can use for refference. Check for example
I don't think I got enough clarity on my older question: What other languages are currently supported for writing schema scripts besides clojure and javascript?
Hi Stryder!
Open API sources are available in %IDE_HOME%/lib/src/src_database-openapi.zip.
If you can't figure out something, ask here - we'll gladly help you.
Hello,
Is there a way to get an example of extension for schema in javascript? The only one providing is in clojure.
Thanks
Hello Teddy,
There is no JavaScript version of the extractor. The last snippet you asked for in support request would look like:
There is a zip with Open API sources available in the /lib/ directory, which you can use for refference. Check for example
I don't think I got enough clarity on my older question: What other languages are currently supported for writing schema scripts besides clojure and javascript?
All JSR-223 scripting languages which are supported by JVM (for which JVM provides ScriptEngine) are supported by IDE.