diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 17:18:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 17:18:38 +0800 |
commit | e462ad0bc5254487337daf285c0303b0eb93e607 (patch) | |
tree | ef11d0d548e23a18da5151321e614d3dca07f797 /script/provider/provider.lua | |
parent | 98c74b1f9a04ed49e4c9186e9e01f7c5c15449c9 (diff) | |
parent | 4c51da51064bb825563827d0610a1e3db75299aa (diff) | |
download | lua-language-server-e462ad0bc5254487337daf285c0303b0eb93e607.zip |
Merge pull request #689 from ArcanoxDragon/improve-semantic-highlighting
Improve diversity and granularity of semantic token highlighting
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index dc807a7a..2781f2c7 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -668,10 +668,6 @@ proto.on('textDocument/semanticTokens/full', function (params) workspace.awaitReady() local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_SEMANTIC_FULL, 0.5) local core = require 'core.semantic-tokens' - local text = files.getText(uri) - if not text then - return nil - end local results = core(uri, 0, math.huge) return { data = results |