diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-24 15:49:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-24 15:49:49 +0800 |
commit | 658d2d47e6fe5779875683a8a9f8a22ccff24e62 (patch) | |
tree | 15438e5162f62fae2f8062b99e126709ff561054 /script/core/completion | |
parent | 75958614871dc316759f826d0f82b26442bbc03b (diff) | |
download | lua-language-server-658d2d47e6fe5779875683a8a9f8a22ccff24e62.zip |
fix
Diffstat (limited to 'script/core/completion')
-rw-r--r-- | script/core/completion/completion.lua | 4 | ||||
-rw-r--r-- | script/core/completion/postfix.lua | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index dadc46ca..ba2b0efc 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -2036,7 +2036,9 @@ local function tryCompletions(state, position, triggerCharacter, results) tryComment(state, position, results) return end - postfix(state, position, results) + if postfix(state, position, results) then + return + end trySpecial(state, position, results) tryCallArg(state, position, results) tryTable(state, position, results) diff --git a/script/core/completion/postfix.lua b/script/core/completion/postfix.lua index a47ff070..434c2a82 100644 --- a/script/core/completion/postfix.lua +++ b/script/core/completion/postfix.lua @@ -193,7 +193,7 @@ return function (state, position, results) if symbol == config.get 'Lua.completion.postfix' then local wordPosition = guide.offsetToPosition(state, offset - 1) checkPostFix(state, word or '', wordPosition, position, results) - return true + return symbol ~= '.' and symbol ~= ':' end return false end |