Skip to content

Commit b6f5daa

Browse files
committed
Renamed 'maxFieldsCount' to 'maxSuggestCount'
1 parent 29693f2 commit b6f5daa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5-
* `NEW` Added `completion.maxFieldCount` which lets you increase the amount of fields to analyze before requiring more specific input
5+
* `NEW` Added `completion.maxSuggestCount` which lets you increase the amount of fields to analyze before requiring more specific input
66
* `New` Omit parameter hints when the argument name matches
77
* `FIX` Fix a typo in `no-unknown` diagnostic message
88
* `FIX` Autodoc generation so it does not include documentation for builtin Lua language features

locale/en-us/setting.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ config.completion.showWord.Disable =
178178
"Do not display context words."
179179
config.completion.autoRequire =
180180
"When the input looks like a file name, automatically `require` this file."
181-
config.completion.maxFieldCount =
181+
config.completion.maxSuggestCount =
182182
"Maximum number of fields to analyze for completions. When an object has more fields than this limit, completions will require more specific input to appear."
183183
config.completion.showParams =
184184
"Display parameters in completion list. When the function has multiple definitions, they will be displayed separately."

script/config/template.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ local template = {
347347
'Disable',
348348
},
349349
['Lua.completion.autoRequire'] = Type.Boolean >> true,
350-
['Lua.completion.maxFieldCount'] = Type.Integer >> 100,
350+
['Lua.completion.maxSuggestCount'] = Type.Integer >> 100,
351351
['Lua.completion.showParams'] = Type.Boolean >> true,
352352
['Lua.completion.requireSeparator'] = Type.String >> '.',
353353
['Lua.completion.postfix'] = Type.String >> '@',

script/core/completion/completion.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ local function checkFieldOfRefs(refs, state, word, startPos, position, parent, o
565565
local fields = {}
566566
local funcs = {}
567567
local count = 0
568-
local maxFieldCount = config.get(state.uri, 'Lua.completion.maxFieldCount')
568+
local maxSuggestCount = config.get(state.uri, 'Lua.completion.maxSuggestCount')
569569
for _, src in ipairs(refs) do
570-
if count > maxFieldCount then
570+
if count > maxSuggestCount then
571571
results.incomplete = true
572572
break
573573
end

0 commit comments

Comments
 (0)