summaryrefslogtreecommitdiff
path: root/locale/en-us/setting.lua
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-02-21 15:02:35 +0800
committerfesily <fesil@foxmail.com>2024-02-21 15:02:35 +0800
commitadfac399b1815731de6f12af1fc3e38516969dc7 (patch)
tree71e37068805d188313ccd56ef6fcee1b3a31ef72 /locale/en-us/setting.lua
parenteab7e6d84bd2bd937cf2e27e9da11a3c96c45605 (diff)
downloadlua-language-server-adfac399b1815731de6f12af1fc3e38516969dc7.zip
add infer function param type
Diffstat (limited to 'locale/en-us/setting.lua')
-rw-r--r--locale/en-us/setting.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua
index 80926d12..be76bf23 100644
--- a/locale/en-us/setting.lua
+++ b/locale/en-us/setting.lua
@@ -293,6 +293,12 @@ When checking the type of union type, ignore the `nil` in it.
When this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.
]]
+config.type.inferParamType =
+[[
+When the parameter type is not annotated, the parameter type is inferred from the function's incoming parameters.
+
+When this setting is `false`, the type of the parameter is `any` when it is not annotated.
+]]
config.doc.privateName =
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
config.doc.protectedName =