Lua snippets for WikimediaThis extension for Visual Studio Code adds snippets for various languages in use by Wikimedia at its sites running MediaWiki software. Among those languages are Lua, which is used as a templating language by the Scribunto extension. UsageType part of a snippet, typically by writing something like The snippets have a prefix that is the method name, and inside Visual Studio Code you might type additionel specifiers. Those are typically the class name or the name of an argument. It is also possible to write the snippets number, even if it is a bit awkward. Instance methods are found the same way as class methods, but the leading part is skipped on the assumption that it shall be appended to a variable of some sort. As this is snippets, there is no Intellisense available. That is a bit unfortunate, as the user must learn the method names. They do although work as a typing aid, and especially well as an aid to get the arguments right. LibrariesThe set of snippets are mostly motivated by what I (the author) have found usefull, so please don't expect the list to be complete! LuaStandard librariesNot included, available through other extensions. Scribunto librariesLibraries loaded by Scribunto
Libraries available through the “mw” structure
Libraries that must be explicitly required
Pickle librariesLibraries that use bootstrapping
Additional snippetsThere a few additional snippets
Installation
|