diff options
author | Arcanox <arcanox@arcanox.me> | 2021-09-26 15:04:14 -0500 |
---|---|---|
committer | Arcanox <arcanox@arcanox.me> | 2021-09-26 15:04:14 -0500 |
commit | 55e30e88ba33a28acc53265b249860b0bbc06fba (patch) | |
tree | 891cd2ff893e875696bc0eed6ed798f01002a91c /script/provider/provider.lua | |
parent | a963b2958eed7388a72d3b14b563b602dd419914 (diff) | |
download | lua-language-server-55e30e88ba33a28acc53265b249860b0bbc06fba.zip |
Revert changes related to canceled requests
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 12 |
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' |