summaryrefslogtreecommitdiff
path: root/script/core
AgeCommit message (Collapse)Author
2024-03-25Detect discard-returns in all block typesJakub
2024-02-26Merge pull request #2532 from fesily/automatic-infer-function-param-type最萌小汐
add infer function param type
2024-02-24Desc/rawdesc for vararg expressions in JSON output.Andreas
2024-02-23fix warnfesily
2024-02-21add infer function param typefesily
2024-01-24fix rename in library最萌小汐
2024-01-18Never sematic virtual ast and commentfesily
2024-01-10Merge pull request #2464 from Varriount/patch-1最萌小汐
Pad `return` type annotations when required.
2024-01-05`FIX` rename to unicode with `Lua.runtime.unicodeName = true`最萌小汐
2023-12-29Pad `return` type annotations when required.Clay Sweetser
Place a space between `---` and `@return` when generating documentation for a function on a line like `--- `. This mimics how `@param` documentation is generated.
2023-11-25Add raw descriptionsNyakoFox
2023-11-14fix type infer in overload最萌小汐
2023-09-25feat: support param snippets with spaceLewis Russell
Currently LuaLS will expand: ```lua ---<??> local x = function (x, y) end ``` with: ```lua ---comment ---@param x any ---@param y any local x = function (x, y) end ``` This change adds a variation of this snippet to expand: ```lua --- <??> local x = function (x, y) end ``` with: ```lua --- comment --- @param x any --- @param y any local x = function (x, y) end ```
2023-08-23support `---@class (exact)`最萌小汐
#1990
2023-08-22fix wrong `missing-fields` with union types最萌小汐
fix #2252
2023-08-16supports `---@enum (key)`最萌小汐
2023-08-14Ignore cast-local-type diagnostic for `_` localRoss Williams
The `unused-local` diagnostic already hard-codes to exclude `_`. `cast-local-type` should also ignore `_` variables, to avoid warnings in, for example, nested loops like: ```lua for _, list in ipairs(lists) do for _, item in ipairs(list) do _, result = pcall(...) end end ```
2023-08-14check `doc.field`最萌小汐
#1990
2023-08-14also check `doc.type.table`最萌小汐
2023-08-14new diag: `inject-field`最萌小汐
#1990
2023-08-11stash最萌小汐
2023-08-03function may not have a name最萌小汐
2023-07-25fix #2214最萌小汐
2023-07-21fix `missing-fields`最萌小汐
2023-07-21fix missing fields最萌小汐
2023-07-21添加翻译最萌小汐
2023-07-21fix最萌小汐
2023-07-20new diagnostic: `missing-fields`最萌小汐
2023-07-20improve completion label of table fields最萌小汐
2023-07-19sort results of completion最萌小汐
2023-07-18Merge pull request #2177 from sewbacca/feature/shortcut-autorequire最萌小汐
[Feature] Add action to autorequire undefined globals
2023-07-17Resolve formattingSewbacca
Resolve member naming
2023-07-17Added testsSewbacca
2023-07-17Extracted undefined global checkSewbacca
2023-07-06signature: narrow by inputed literal最萌小汐
2023-06-29exclude `_`最萌小汐
2023-06-28Adapt incomplete-signature-doc to warn about incomplete, not missing docs (#9)AndreaWalchshoferSCCH
Previously, the diagnostic `incomplete-signature-doc` is ignoring fully undocumented functions - but is already triggered by a simple comment. This turns out to be impractical in a few cases, as it also forces a full documentation of functions that should just be annotated with `---@async` (and is therefore not yet fully compatible with `await-in-sync`) So this PR adapts the diagnostic to only warn about **incomplete** signature docs, so it requires at least one `@param` or `@return` annotation before a warning is given. (Otherwise, it would be a missing signature doc, and there's separate diagnostics about that...)
2023-06-27Added crossfile testcaseSewbacca
Improved eq error message in test/code_action/init.lua Uses core.diagnostics.undefined-global
2023-06-26check nil最萌小汐
2023-06-23Fix tests failingSewbacca
2023-06-23Added concept of action autorequireSewbacca
2023-06-14check nil最萌小汐
2023-06-14fix #2129最萌小汐
2023-06-13completion for quoted fields最萌小汐
fix #2088
2023-06-13bind overloads最萌小汐
fix #2083
2023-06-13more smart completion for `continue`最萌小汐
fix #2042
2023-06-13check nil最萌小汐
2023-05-25command:add reloadFFIMetafesily
2023-05-11Annotation rule for exported local functionsThomas Wetzlmaier
Annotation for the following local function func1 is required. local mod = { } local function func1() end mod.Func1 = func1 return mod;
2023-04-27更新实现CppCXY