From ba02896e82d515e4f608b43edb99692f96851ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 24 Jun 2021 21:56:09 +0800 Subject: fix #539 --- .vscode/launch.json | 2 +- changelog.md | 1 + script/core/completion.lua | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3ba84cd2..c23af9d7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -30,7 +30,7 @@ "type": "lua", "request": "attach", "stopOnEntry": true, - "address": "127.0.0.1:11413", + "address": "127.0.0.1:11427", "outputCapture": [ ], "sourceMaps": [ diff --git a/changelog.md b/changelog.md index 7b74d910..2847f76d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # changelog ## 2.0.4 +* `FIX` [#539](https://github.com/sumneko/lua-language-server/issues/539) * `FIX` [#550](https://github.com/sumneko/lua-language-server/issues/550) ## 2.0.3 diff --git a/script/core/completion.lua b/script/core/completion.lua index 2975634c..97984299 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1172,7 +1172,7 @@ local function tryWord(ast, text, offset, triggerCharacter, results) if not word then if triggerCharacter == nil then word = '' - start = offset + start = offset + 1 else return nil end -- cgit v1.2.3