diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-18 05:57:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-18 05:57:36 +0800 |
commit | a2ca88cc7e078ce0c06a2140be3efdcf6cfe6c02 (patch) | |
tree | 6a8b094d46ab58f6e5776692d8d36cfa66a88ff1 /script/provider/provider.lua | |
parent | 97324851ab26d32a8b5fa56b7b3a867692100fb4 (diff) | |
download | lua-language-server-a2ca88cc7e078ce0c06a2140be3efdcf6cfe6c02.zip |
complete code lens
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 3 |
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 |