jsconsole: dynamically load method signatures from all classes implementing BaseScopeable
CHECKLIST
- [x] There aren't existing pull requests attempting to address the issue mentioned here
- [x] Submission developed in a feature branch--not master
currently jsconsole only supports pregenerated or manually created tern files to support autocomplete. I added @AFaust 's Webscript AlfrescoScriptAPITernGet.java from his fork to dynamically generate a tern document, so any custom Alfresco Addon would support autocomplete in jsconsole without providin handcrafted tern files
The original webscript has been extended to also handle array properties
RELATED INFORMATION
- old issue in share-extras/js-console: Make methods of class extending BaseScopableProcessorExtension available for autocomplete #67
- AFaust's fork having a AlfrescoScriptAPITernGet.java in branch js-console-v2
We're currently testing this PR and will report back when it's working successfully
We're currently testing this PR and will report back when it's working successfully
We have tested this PR and at this moment it's not working for us, maybe because it's not based on 1.2.2.0 but has some old code. It generates the json file perfectly but the autocomplete doesn't work, not with the json file nor with the standard autocomplete like search.. However the dynamical generation of the json is very interesting for our usecase.
Since I could not update the source branch to rebase the code to the latest OOTBee Support Tools master, I created a new PR from a branch I pushed to my own GitHub fork. In this branch I also applied some minor cleanup + fixes, like removing the width constraint on the tern hints in the UI, and updated the project version to the 1.2.3.0-SNAPSHOT development version. I will create a couple of follow-up issue(s) that deal(s) with configuration for the dynamic tern generation, which includes moving some of the documentation texts from the static tern JSON files (kept for the time being, albeit without being used) into the properties file for the tern generation.
The PR / changes have been tested to work with ACS 6.1 and 23.1 as well.