diff options
-rw-r--r-- | changelog.md | 3 | ||||
-rw-r--r-- | script/core/completion.lua | 2 | ||||
-rw-r--r-- | script/proto/define.lua | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md index ec34f4e0..73fb8878 100644 --- a/changelog.md +++ b/changelog.md @@ -19,6 +19,9 @@ * `CHG` completion: improve misspelling results * `CHG` completion: `Lua.completion.displayContext` default to `0` * `CHG` completion: `autoRequire` has better inserting position +* `CHG` diagnostics: + + `redundant-parameter` default severity to `Warning` + + `redundant-value` default severity to `Warning` * `CHG` [#663](https://github.com/sumneko/lua-language-server/issues/663) * `FIX` runtime errors * `FIX` hint: may show param-2 as `self` diff --git a/script/core/completion.lua b/script/core/completion.lua index bb55506a..d384017d 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1994,7 +1994,7 @@ local function completion(uri, position, triggerCharacter) local results = getCache(uri, position) tracy.ZoneEnd() if results then - return results + --return results end tracy.ZoneBeginN 'completion #1' local state = files.getState(uri) diff --git a/script/proto/define.lua b/script/proto/define.lua index 0cdc6406..699bcd15 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -28,14 +28,14 @@ m.DiagnosticDefaultSeverity = { ['redefined-local'] = 'Hint', ['newline-call'] = 'Information', ['newfield-call'] = 'Warning', - ['redundant-parameter'] = 'Hint', + ['redundant-parameter'] = 'Warning', ['ambiguity-1'] = 'Warning', ['lowercase-global'] = 'Information', ['undefined-env-child'] = 'Information', ['duplicate-index'] = 'Warning', ['duplicate-set-field'] = 'Warning', ['empty-block'] = 'Hint', - ['redundant-value'] = 'Hint', + ['redundant-value'] = 'Warning', ['code-after-break'] = 'Hint', ['unbalanced-assignments'] = 'Warning', ['close-non-object'] = 'Warning', |