diff options
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' |