sumnekolua
安装插件后,需要在项目设置 .vscode/settings.json 中添加下面内容
"Lua.workspace.library": {
"framework": true,
"lua_api": true,
"tolua": true,
},
"Lua.runtime.version": "Lua 5.3",
"Lua.workspace.preloadFileSize": 1000,
"Lua.workspace.maxPreload": 3000,
"Lua.diagnostics.globals": [
"tolua",
"lua_dc",
"cjson",
"abs",
"_ylw",
"INTL",
"jit",
"LoginConfig",
"TT",
"TokenTypeT",
"DeviceInfoHub",
"DebugServerIp",
],
"Lua.runtime.special": {
"_class": "diyclass",
"_enum": "diyset",
"_autoEnum": "diyset",
"_staticClass": "diyset"
},
"Lua.diagnostics.disable": [
"lowercase-global",
"undefined-doc-name",
"undefined-doc-param",
"duplicate-doc-class",
"undefined-doc-class",
"doc-field-no-class",
"circle-doc-class",
"duplicate-doc-param",
"duplicate-index",
"ambiguity-1",
"luadoc-miss-param-name",
"luadoc-miss-symbol",
"luadoc-miss-type-name"
]