summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
authorArcanox <arcanox@arcanox.me>2021-09-26 15:04:14 -0500
committerArcanox <arcanox@arcanox.me>2021-09-26 15:04:14 -0500
commit55e30e88ba33a28acc53265b249860b0bbc06fba (patch)
tree891cd2ff893e875696bc0eed6ed798f01002a91c /script/provider/provider.lua
parenta963b2958eed7388a72d3b14b563b602dd419914 (diff)
downloadlua-language-server-55e30e88ba33a28acc53265b249860b0bbc06fba.zip
Revert changes related to canceled requests
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 632dae6f..6373fe7e 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -680,13 +680,11 @@ proto.on('workspace/symbol', function (params)
end)
-proto.on('textDocument/semanticTokens/full', function (params, id)
+proto.on('textDocument/semanticTokens/full', function (params)
local uri = params.textDocument.uri
await.close('textDocument/semanticTokens/full')
await.setID('textDocument/semanticTokens/full')
- await.setID('update:' .. uri, function()
- proto.close(id, define.ErrorCodes.ContentModified)
- end)
+ await.setID('update:' .. uri)
workspace.awaitReady()
local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_SEMANTIC_FULL, 0.5)
local core = require 'core.semantic-tokens'
@@ -696,13 +694,11 @@ proto.on('textDocument/semanticTokens/full', function (params, id)
}
end)
-proto.on('textDocument/semanticTokens/range', function (params, id)
+proto.on('textDocument/semanticTokens/range', function (params)
local uri = params.textDocument.uri
await.close('textDocument/semanticTokens/range')
await.setID('textDocument/semanticTokens/range')
- await.setID('update:' .. uri, function()
- proto.close(id, define.ErrorCodes.ContentModified)
- end)
+ await.setID('update:' .. uri)
workspace.awaitReady()
local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_SEMANTIC_RANGE, 0.5)
local core = require 'core.semantic-tokens'