Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2636

LunaLua • Re: Lua Intellisense

$
0
0
New Update - v4.5

Image

Some big changes have also been made to the original post!

Annotation changes
  • Finish type information for `API`, `EventManager`, `require_utils`, and more
  • Remove many duplicate definitions
  • Greatly improve type information in *most* classes
  • Add several missing function or enum aliases
  • Improve type narrowing and inheritance
  • Implement generic types in places where appropriate
Plugin Changes
  • case-insensitive module file resolution. You will now get autocomplete for loaded libraries regardless of if you capitalized the name correctly (for example require "npcManager" when the name of the file is actually "npcmanager") This is because SMBX2 only works on Windows where the file system is case-insensitive.
  • when overridden, global lunalua events will now contain type information about their arguments

Important!

To update the addon in vscode, you may need to open the addon manager again and press the big blue "Update" button.

Plugin related updates won't apply unless you add this to your configuration file. (.vscode/settings.json, .luarc.json, or other)

Code:

"Lua.runtime.plugin": "C:/Users/<user>/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/smbx2-lunalua/module/plugin.lua"
The path used here should reflect where the addon is installed. This example uses the location that the vscode extension saves addons to.

Statistics: Posted by WildW — Thu Sep 12, 2024 1:52 pm



Viewing all articles
Browse latest Browse all 2636

Trending Articles