File tree Expand file tree Collapse file tree 8 files changed +523
-3
lines changed
Expand file tree Collapse file tree 8 files changed +523
-3
lines changed Original file line number Diff line number Diff line change 11# changelog
22
3+ ## 3.4.2
4+ ` 2022-7-6 `
5+ * ` CHG ` diagnostic: ` type-check ` ignores ` nil ` in ` getfield `
6+ * ` CHG ` diagnostic: ` ---@diagnostic disable: <ERR_NAME> ` can suppress syntax errors
7+ * ` CHG ` completion: ` completion.callSnippet ` no longer generate parameter types
8+ * ` CHG ` hover: show ` ---@type {x: number, y: number} ` as detail instead of ` table `
9+ * ` CHG ` dose not infer as ` nil ` by ` t.field = nil `
10+ * ` FIX ` [ #1278 ] ( https://github.com/sumneko/lua-language-server/issues/1278 )
11+ * ` FIX ` [ #1288 ] ( https://github.com/sumneko/lua-language-server/issues/1288 )
12+
313## 3.4.1
414` 2022-7-5 `
515* ` NEW ` settings:
Original file line number Diff line number Diff line change 121121 "Lua.diagnostics.disable" : {
122122 "default" : [],
123123 "items" : {
124+ "enum" : [
125+ " not-yieldable" ,
126+ " redundant-parameter" ,
127+ " break-outside" ,
128+ " undefined-doc-class" ,
129+ " unknown-symbol" ,
130+ " miss-method" ,
131+ " err-nonstandard-symbol" ,
132+ " unknown-attribute" ,
133+ " unexpect-efunc-name" ,
134+ " different-requires" ,
135+ " miss-end" ,
136+ " await-in-sync" ,
137+ " args-after-dots" ,
138+ " err-eq-as-assign" ,
139+ " newfield-call" ,
140+ " err-assign-as-eq" ,
141+ " undefined-doc-param" ,
142+ " param-type-mismatch" ,
143+ " global-in-nil-env" ,
144+ " missing-parameter" ,
145+ " miss-sep-in-table" ,
146+ " unknown-cast-variable" ,
147+ " miss-loop-min" ,
148+ " malformed-number" ,
149+ " err-do-as-then" ,
150+ " spell-check" ,
151+ " undefined-env-child" ,
152+ " missing-return-value" ,
153+ " discard-returns" ,
154+ " redundant-return" ,
155+ " miss-esc-x" ,
156+ " redundant-value" ,
157+ " duplicate-doc-alias" ,
158+ " doc-field-no-class" ,
159+ " no-visible-label" ,
160+ " miss-exp" ,
161+ " miss-loop-max" ,
162+ " miss-name" ,
163+ " empty-block" ,
164+ " unused-local" ,
165+ " err-then-as-do" ,
166+ " duplicate-doc-field" ,
167+ " redefined-label" ,
168+ " exp-in-action" ,
169+ " set-const" ,
170+ " circle-doc-class" ,
171+ " unexpect-lfunc-name" ,
172+ " unsupport-symbol" ,
173+ " unused-label" ,
174+ " action-after-return" ,
175+ " unexpect-dots" ,
176+ " newline-call" ,
177+ " jump-local-scope" ,
178+ " close-non-object" ,
179+ " miss-field" ,
180+ " count-down-loop" ,
181+ " cast-type-mismatch" ,
182+ " duplicate-index" ,
183+ " unexpect-symbol" ,
184+ " block-after-else" ,
185+ " unicode-name" ,
186+ " miss-exponent" ,
187+ " err-esc" ,
188+ " redundant-return-value" ,
189+ " unbalanced-assignments" ,
190+ " err-c-long-comment" ,
191+ " undefined-doc-name" ,
192+ " ambiguity-1" ,
193+ " trailing-space" ,
194+ " deprecated" ,
195+ " codestyle-check" ,
196+ " missing-return" ,
197+ " undefined-global" ,
198+ " unused-function" ,
199+ " code-after-break" ,
200+ " assign-type-mismatch" ,
201+ " local-limit" ,
202+ " cast-local-type" ,
203+ " need-check-nil" ,
204+ " keyword" ,
205+ " unknown-diag-code" ,
206+ " unused-vararg" ,
207+ " err-comment-prefix" ,
208+ " lowercase-global" ,
209+ " return-type-mismatch" ,
210+ " duplicate-set-field" ,
211+ " redefined-local" ,
212+ " no-unknown" ,
213+ " duplicate-doc-param" ,
214+ " index-in-func-name" ,
215+ " miss-symbol" ,
216+ " undefined-field" ,
217+ " miss-space-between"
218+ ],
124219 "type" : " string"
125220 },
126221 "markdownDescription" : " %config.diagnostics.disable%" ,
23022397 " -=" ,
23032398 " *=" ,
23042399 " /=" ,
2400+ " %=" ,
2401+ " ^=" ,
2402+ " //=" ,
2403+ " |=" ,
2404+ " &=" ,
2405+ " <<=" ,
2406+ " >>=" ,
23052407 " ||" ,
23062408 " &&" ,
23072409 " !" ,
27072809 "sponsor" : {
27082810 "url" : " https://github.com/sumneko/lua-language-server/issues/484"
27092811 },
2710- "version" : " 3.4.1 "
2812+ "version" : " 3.4.2 "
27112813}
Original file line number Diff line number Diff line change 11local json = require ' json-beautify'
22
3- local VERSION = " 3.4.1 "
3+ local VERSION = " 3.4.2 "
44
55local package = require ' package.package'
66local fsu = require ' fs-utility'
Original file line number Diff line number Diff line change 168168 "diagnostics.disable" : {
169169 "default" : [],
170170 "items" : {
171+ "enum" : [
172+ " not-yieldable" ,
173+ " redundant-parameter" ,
174+ " break-outside" ,
175+ " undefined-doc-class" ,
176+ " unknown-symbol" ,
177+ " miss-method" ,
178+ " err-nonstandard-symbol" ,
179+ " unknown-attribute" ,
180+ " unexpect-efunc-name" ,
181+ " different-requires" ,
182+ " miss-end" ,
183+ " await-in-sync" ,
184+ " args-after-dots" ,
185+ " err-eq-as-assign" ,
186+ " newfield-call" ,
187+ " err-assign-as-eq" ,
188+ " undefined-doc-param" ,
189+ " param-type-mismatch" ,
190+ " global-in-nil-env" ,
191+ " missing-parameter" ,
192+ " miss-sep-in-table" ,
193+ " unknown-cast-variable" ,
194+ " miss-loop-min" ,
195+ " malformed-number" ,
196+ " err-do-as-then" ,
197+ " spell-check" ,
198+ " undefined-env-child" ,
199+ " missing-return-value" ,
200+ " discard-returns" ,
201+ " redundant-return" ,
202+ " miss-esc-x" ,
203+ " redundant-value" ,
204+ " duplicate-doc-alias" ,
205+ " doc-field-no-class" ,
206+ " no-visible-label" ,
207+ " miss-exp" ,
208+ " miss-loop-max" ,
209+ " miss-name" ,
210+ " empty-block" ,
211+ " unused-local" ,
212+ " err-then-as-do" ,
213+ " duplicate-doc-field" ,
214+ " redefined-label" ,
215+ " exp-in-action" ,
216+ " set-const" ,
217+ " circle-doc-class" ,
218+ " unexpect-lfunc-name" ,
219+ " unsupport-symbol" ,
220+ " unused-label" ,
221+ " action-after-return" ,
222+ " unexpect-dots" ,
223+ " newline-call" ,
224+ " jump-local-scope" ,
225+ " close-non-object" ,
226+ " miss-field" ,
227+ " count-down-loop" ,
228+ " cast-type-mismatch" ,
229+ " duplicate-index" ,
230+ " unexpect-symbol" ,
231+ " block-after-else" ,
232+ " unicode-name" ,
233+ " miss-exponent" ,
234+ " err-esc" ,
235+ " redundant-return-value" ,
236+ " unbalanced-assignments" ,
237+ " err-c-long-comment" ,
238+ " undefined-doc-name" ,
239+ " ambiguity-1" ,
240+ " trailing-space" ,
241+ " deprecated" ,
242+ " codestyle-check" ,
243+ " missing-return" ,
244+ " undefined-global" ,
245+ " unused-function" ,
246+ " code-after-break" ,
247+ " assign-type-mismatch" ,
248+ " local-limit" ,
249+ " cast-local-type" ,
250+ " need-check-nil" ,
251+ " keyword" ,
252+ " unknown-diag-code" ,
253+ " unused-vararg" ,
254+ " err-comment-prefix" ,
255+ " lowercase-global" ,
256+ " return-type-mismatch" ,
257+ " duplicate-set-field" ,
258+ " redefined-local" ,
259+ " no-unknown" ,
260+ " duplicate-doc-param" ,
261+ " index-in-func-name" ,
262+ " miss-symbol" ,
263+ " undefined-field" ,
264+ " miss-space-between"
265+ ],
171266 "type" : " string"
172267 },
173268 "markdownDescription" : " Disabled diagnostic (Use code in hover brackets)." ,
24502545 " -=" ,
24512546 " *=" ,
24522547 " /=" ,
2548+ " %=" ,
2549+ " ^=" ,
2550+ " //=" ,
2551+ " |=" ,
2552+ " &=" ,
2553+ " <<=" ,
2554+ " >>=" ,
24532555 " ||" ,
24542556 " &&" ,
24552557 " !" ,
Original file line number Diff line number Diff line change 168168 "diagnostics.disable" : {
169169 "default" : [],
170170 "items" : {
171+ "enum" : [
172+ " not-yieldable" ,
173+ " redundant-parameter" ,
174+ " break-outside" ,
175+ " undefined-doc-class" ,
176+ " unknown-symbol" ,
177+ " miss-method" ,
178+ " err-nonstandard-symbol" ,
179+ " unknown-attribute" ,
180+ " unexpect-efunc-name" ,
181+ " different-requires" ,
182+ " miss-end" ,
183+ " await-in-sync" ,
184+ " args-after-dots" ,
185+ " err-eq-as-assign" ,
186+ " newfield-call" ,
187+ " err-assign-as-eq" ,
188+ " undefined-doc-param" ,
189+ " param-type-mismatch" ,
190+ " global-in-nil-env" ,
191+ " missing-parameter" ,
192+ " miss-sep-in-table" ,
193+ " unknown-cast-variable" ,
194+ " miss-loop-min" ,
195+ " malformed-number" ,
196+ " err-do-as-then" ,
197+ " spell-check" ,
198+ " undefined-env-child" ,
199+ " missing-return-value" ,
200+ " discard-returns" ,
201+ " redundant-return" ,
202+ " miss-esc-x" ,
203+ " redundant-value" ,
204+ " duplicate-doc-alias" ,
205+ " doc-field-no-class" ,
206+ " no-visible-label" ,
207+ " miss-exp" ,
208+ " miss-loop-max" ,
209+ " miss-name" ,
210+ " empty-block" ,
211+ " unused-local" ,
212+ " err-then-as-do" ,
213+ " duplicate-doc-field" ,
214+ " redefined-label" ,
215+ " exp-in-action" ,
216+ " set-const" ,
217+ " circle-doc-class" ,
218+ " unexpect-lfunc-name" ,
219+ " unsupport-symbol" ,
220+ " unused-label" ,
221+ " action-after-return" ,
222+ " unexpect-dots" ,
223+ " newline-call" ,
224+ " jump-local-scope" ,
225+ " close-non-object" ,
226+ " miss-field" ,
227+ " count-down-loop" ,
228+ " cast-type-mismatch" ,
229+ " duplicate-index" ,
230+ " unexpect-symbol" ,
231+ " block-after-else" ,
232+ " unicode-name" ,
233+ " miss-exponent" ,
234+ " err-esc" ,
235+ " redundant-return-value" ,
236+ " unbalanced-assignments" ,
237+ " err-c-long-comment" ,
238+ " undefined-doc-name" ,
239+ " ambiguity-1" ,
240+ " trailing-space" ,
241+ " deprecated" ,
242+ " codestyle-check" ,
243+ " missing-return" ,
244+ " undefined-global" ,
245+ " unused-function" ,
246+ " code-after-break" ,
247+ " assign-type-mismatch" ,
248+ " local-limit" ,
249+ " cast-local-type" ,
250+ " need-check-nil" ,
251+ " keyword" ,
252+ " unknown-diag-code" ,
253+ " unused-vararg" ,
254+ " err-comment-prefix" ,
255+ " lowercase-global" ,
256+ " return-type-mismatch" ,
257+ " duplicate-set-field" ,
258+ " redefined-local" ,
259+ " no-unknown" ,
260+ " duplicate-doc-param" ,
261+ " index-in-func-name" ,
262+ " miss-symbol" ,
263+ " undefined-field" ,
264+ " miss-space-between"
265+ ],
171266 "type" : " string"
172267 },
173268 "markdownDescription" : " 禁用的诊断(使用浮框括号内的代码)。" ,
24502545 " -=" ,
24512546 " *=" ,
24522547 " /=" ,
2548+ " %=" ,
2549+ " ^=" ,
2550+ " //=" ,
2551+ " |=" ,
2552+ " &=" ,
2553+ " <<=" ,
2554+ " >>=" ,
24532555 " ||" ,
24542556 " &&" ,
24552557 " !" ,
You can’t perform that action at this time.
0 commit comments