From 55e30e88ba33a28acc53265b249860b0bbc06fba Mon Sep 17 00:00:00 2001 From: Arcanox Date: Sun, 26 Sep 2021 15:04:14 -0500 Subject: Revert changes related to canceled requests --- script/provider/provider.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'script/provider/provider.lua') 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 _ = 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 _ = progress.create(lang.script.WINDOW_PROCESSING_SEMANTIC_RANGE, 0.5) local core = require 'core.semantic-tokens' -- cgit v1.2.3