diff options
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 3fe7e691..9b43a4a2 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -429,8 +429,11 @@ proto.on('textDocument/prepareRename', function (params) placeholder = result.text, } end) - +require 'tracy'.enable() proto.on('textDocument/completion', function (params) + await.close('completion') + await.setID('completion') + await.sleep(0.01) workspace.awaitReady() local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_COMPLETION, 0.5) --log.info(util.dump(params)) @@ -452,6 +455,8 @@ proto.on('textDocument/completion', function (params) if not result then return nil end + tracy.ZoneBeginN 'completion make' + local _ <close> = tracy.ZoneEnd local easy = false local items = {} for i, res in ipairs(result) do |