View Single Post
03-13-21, 03:55 PM   #7
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 321
I am currently giving VSCode a try.

Any suggestions on which extensions I should use?

Judging by popularity, this seems to be a must-have for lua:
https://marketplace.visualstudio.com...me=sumneko.lua

Being able to click on names and jump to where the are defined is great.

But it also keeps telling me for almost every function, that I should change the parameter order. Don't know on what basis it makes these assumptions.

And of course, it warns me about every WoW global it doesn't know. I can manually mark these as known globals, which are stored in the .vscode file:

Code:
{
    "Lua.diagnostics.globals": [
        "GameTooltip",
        "hooksecurefunc",
        "tinsert"
    ]
}
Or is there a list of all globals maintained anywhere, which I could simply import?


Or how are you doing it?

Thanks!
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote