Last modified: 2014-08-09 11:36:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63256 - Add Lua and JS code completion for MediaWiki libraries
Add Lua and JS code completion for MediaWiki libraries
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CodeEditor (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 48828
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-29 12:22 UTC by Derk-Jan Hartman
Modified: 2014-08-09 11:36 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Derk-Jan Hartman 2014-03-29 12:22:07 UTC
Would be cool if we can generate .snippets libraries from our Lua and JS libraries, then add them whenever we run in Mediawiki context to the CodeEditor completer.

Example of a snippets file for jQuery:
https://github.com/ajaxorg/ace/blob/master/lib/ace/snippets/javascript-jquery.snippets

Some examples of how a complete is defined and added in:
https://github.com/ajaxorg/ace/blob/62c514135d5ebd912c3a0c8e7c200b59ad0f6fca/lib/ace/ext/language_tools.js#L70-L73
Comment 1 Derk-Jan Hartman 2014-03-29 12:29:27 UTC
HTML completions:
https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/html_completions.js

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links