summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-24 21:56:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-24 21:56:09 +0800
commitba02896e82d515e4f608b43edb99692f96851ea6 (patch)
treef49ea0f0f336c7e2facf747826484adeb617ab89
parent3f300fc71445acd56b70ebc10255eab160b9c458 (diff)
downloadlua-language-server-ba02896e82d515e4f608b43edb99692f96851ea6.zip
fix #539
-rw-r--r--.vscode/launch.json2
-rw-r--r--changelog.md1
-rw-r--r--script/core/completion.lua2
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