linguist
linguist copied to clipboard
Update ace mode path for tests
The upstream directory structure was changed in https://github.com/ajaxorg/ace/pull/4851 which means we're looking in the wrong place for all the languages supported by the Ace editor. We now need to look in the old location for jsoniq and xquery and the new location for everything else.
These changes have been made as they plan to release Ace as an NPM.
There doesn't appear to be any rationale behind ajaxorg/ace#4851. If upstream makes this sort of change willy-nilly, then it might be wiser to query the latest tagged release, as opposed to HEAD. Doing so will reduce the risk of this happening again, since there's no guarantee such an arbitrary change won't be reverted later.
There doesn't appear to be any rationale behind ajaxorg/ace#4851.
There is now as I asked for one 😁.
Based on this, I think we're good to stay with using HEAD. This has been the first major change like this since we implemented the test so I think we should be good querying both locations for the future.