diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 15:43:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 15:43:18 +0800 |
commit | bddbb7095d2d4977dcf3259489a188eba9e2d321 (patch) | |
tree | 2f0d4bc59375a6a21cd744cae94ef65edcd5fd08 /script/provider/provider.lua | |
parent | eb939ecccd11c6c628fc478f6e4550ab9c66a95c (diff) | |
download | lua-language-server-bddbb7095d2d4977dcf3259489a188eba9e2d321.zip |
`$/cancelRequest` returns code `RequestCancelled`
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 070652ef..ff9296d6 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -684,7 +684,6 @@ 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) workspace.awaitReady() local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_SEMANTIC_FULL, 0.5) local core = require 'core.semantic-tokens' @@ -702,7 +701,6 @@ 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) workspace.awaitReady() local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_SEMANTIC_RANGE, 0.5) local core = require 'core.semantic-tokens' @@ -806,7 +804,7 @@ proto.on('textDocument/onTypeFormatting', function (params) end) proto.on('$/cancelRequest', function (params) - await.close('proto:' .. params.id) + proto.close(params.id, define.ErrorCodes.RequestCancelled) end) proto.on('$/requestHint', function (params) |