Skip to content

Commit 013dc02

Browse files
committed
fix: remove debug prints
1 parent aa80347 commit 013dc02

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lua/blink/cmp/init.lua

-3
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,11 @@ cmp.setup = function(opts)
3838
cmp.windows.autocomplete.close()
3939
end)
4040
cmp.sources.listen_on_completions(function(context, items)
41-
local duration = vim.loop.hrtime() - start_time
42-
print('cmp.sources.listen_on_completions duration: ' .. duration / 1000000 .. 'ms')
4341
-- avoid adding 1-4ms to insertion latency by scheduling for later
4442
vim.schedule(function()
4543
local filtered_items = cmp.fuzzy.filter_items(require('blink.cmp.util').get_query(), items)
4644
if #filtered_items > 0 then
4745
cmp.windows.autocomplete.open_with_items(context, filtered_items)
48-
print('cmp.windows.autocomplete.open_with_items duration: ' .. duration / 1000000 .. 'ms')
4946
else
5047
cmp.windows.autocomplete.close()
5148
end

lua/blink/cmp/sources/lsp.lua

-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ function lsp.get_clients_with_capability(capability, filter)
4040
end
4141

4242
function lsp.completions(context, callback)
43-
local start_time = vim.loop.hrtime()
4443
-- no providers with completion support
4544
if not lsp.has_capability('completionProvider') then return callback({ isIncomplete = false, items = {} }) end
4645

@@ -56,8 +55,6 @@ function lsp.completions(context, callback)
5655
-- request from each of the clients
5756
-- todo: refactor
5857
lsp.cancel_completions_func = vim.lsp.buf_request_all(0, 'textDocument/completion', params, function(result)
59-
local duration = vim.loop.hrtime() - start_time
60-
print('lsp.completions duration: ' .. duration / 1000000 .. 'ms')
6158
local responses = {}
6259
for client_id, response in pairs(result) do
6360
-- todo: pass error upstream

0 commit comments

Comments
 (0)