From dad7348ed60968d765f43936c4957fa7fc175195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 22 Jun 2021 01:49:29 +0800 Subject: [PATCH] fix #566 --- changelog.md | 3 +++ script/core/searcher.lua | 1 - test/diagnostics/init.lua | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 4f985eae6..3fc9f9ec6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # changelog +## 2.0.1 +* `FIX` [#566](https://github.com/sumneko/lua-language-server/issues/566) + ## 2.0.0 `2021-6-21` * `NEW` implement diff --git a/script/core/searcher.lua b/script/core/searcher.lua index ad9605f90..6c8ca60ad 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -15,7 +15,6 @@ local ignoredIDs = { ['dn:nil'] = true, ['dn:any'] = true, ['dn:boolean'] = true, - ['dn:string'] = true, ['dn:table'] = true, ['dn:number'] = true, ['dn:integer'] = true, diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 54951b333..01c535331 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1127,3 +1127,10 @@ for x in each() do print(x) end ]] + +TEST [[ +---@type string +local s + +print(s:upper()) +]]