With Orion 11.0 officially released, it is time again to share with you the new & noteworthy items developed during this release. Unlike previous announcements we will be posting more in-depth articles about the new functionality and how to use it.
Where is this function used? Where is it declared? What if I need to change its signature? Global search is not the only tool for answering these questions if you use Orion 11.0. Find All References can search through your project or workspace find potential matches and then figure out which ones are actually referencing the function (or variable) you are interested in. Orion will sort all the matches into reference types and then provide a green check if we are sure this is a matching reference, a question mark if it is a possible reference, or a red X if it is not a reference (but matches the search text). You can take it a step further and refactor the contents of multiple files at once. There is a full write-up on Planet Orion with the details.
Documentation of your APIs not only is good practice, it makes the existing language tools work better. When your JSDoc (add it to any function using Alt+Shift+J) specifies the type of a function’s arguments and returns, the tooling can offer more accurate content assist and hovers. To help you fill in these types we now offer content assist inside JSDoc.
Our tooling for HTML has seen impressive improvements during this release. The parser we use was entirely replaced with HTMLParser2 providing us with much more accurate ranges and more recovery options for incomplete HTML. Content assist has expanded to support accessibility attributes, specifically ARIA roles. We also provide assist for many attribute values, not just the elements and attributes. See the full write up here.
We also highlight the selected tag and its matching tag close. Have Show Occurrences option turned on in the Editor Settings to see it.
Try it right now at orionhub.org!