diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-26 09:30:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-26 09:30:23 +0800 |
commit | f70a09aaa98557ecbc6f133c7b5daac9adc4cc36 (patch) | |
tree | 338c239353fd018a7315ed25d64ec25fe23e6d0c /script/provider/provider.lua | |
parent | 5242ea4f866f112e91ffa918db07626280decb71 (diff) | |
download | lua-language-server-f70a09aaa98557ecbc6f133c7b5daac9adc4cc36.zip |
fix completion
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 6c8890ac..923b6c1f 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -352,7 +352,7 @@ proto.on('textDocument/completion', function (params) end await.setPriority(1000) local clock = os.clock() - local offset = files.offsetOfWord(uri, params.position) + local offset = files.offset(uri, params.position) local result = core.completion(uri, offset) local passed = os.clock() - clock if passed > 0.1 then |