summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-27 15:54:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-27 15:54:37 +0800
commit2f4f3e185b82ac16364e3a6150b8e1a7c5b1cdf9 (patch)
tree46c73f4febc2303ae28eb7117e6c5c370937f542 /script/provider/provider.lua
parent8dda772869b35778be3178c7e12d3a268e8d08af (diff)
downloadlua-language-server-2f4f3e185b82ac16364e3a6150b8e1a7c5b1cdf9.zip
some fix
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 668e4eb2..3f64494d 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -673,7 +673,7 @@ proto.on('textDocument/semanticTokens/full', function (params)
if not text then
return nil
end
- local results = core(uri, 0, #text)
+ local results = core(uri, 0, math.huge)
return {
data = results
}
@@ -689,7 +689,7 @@ proto.on('textDocument/semanticTokens/range', function (params)
if cache and not cache['firstSemantic'] then
cache['firstSemantic'] = true
start = 0
- finish = #files.getText(uri)
+ finish = math.huge
else
start, finish = converter.unpackRange(uri, params.range)
end