summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-11 01:21:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-11 01:21:25 +0800
commit8ec593e83fff0ba00466361cdee5dece07c5d98e (patch)
treecef3974549de161cb6a4179579fb4fbfb46fc5e7 /script/provider
parent566536d7de551299cd81c43948c46cf5b38e04a5 (diff)
downloadlua-language-server-8ec593e83fff0ba00466361cdee5dece07c5d98e.zip
abort semantic-tokens requests
#1599
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 3ab5bb19..c93a7c53 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -941,6 +941,7 @@ client.event(function (ev)
full = true,
},
},
+ abortByFileUpdate = true,
---@async
function (params)
log.debug('textDocument/semanticTokens/full')
@@ -969,6 +970,7 @@ m.register 'textDocument/semanticTokens/range' {
range = true,
},
},
+ abortByFileUpdate = true,
---@async
function (params)
log.debug('textDocument/semanticTokens/range')