summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-12-18 05:57:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-12-18 05:57:36 +0800
commita2ca88cc7e078ce0c06a2140be3efdcf6cfe6c02 (patch)
tree6a8b094d46ab58f6e5776692d8d36cfa66a88ff1 /script/provider/provider.lua
parent97324851ab26d32a8b5fa56b7b3a867692100fb4 (diff)
downloadlua-language-server-a2ca88cc7e078ce0c06a2140be3efdcf6cfe6c02.zip
complete code lens
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 868fe81a..51bdf531 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -927,6 +927,9 @@ m.register 'textDocument/codeLens' {
---@async
function (params)
local uri = files.getRealUri(params.textDocument.uri)
+ if not config.get(uri, 'Lua.codeLens.enable') then
+ return
+ end
workspace.awaitReady(uri)
local state = files.getState(uri)
if not state then