File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ T["nes"] = MiniTest.new_set({
9
9
pre_case = function ()
10
10
child .restart ({ " -u" , " scripts/minimal_init.lua" })
11
11
child .lua_func (function ()
12
+ vim .g .copilot_nes_debounce = 450
12
13
vim .lsp .config (" copilot" , {
13
14
cmd = require (" tests.mock_lsp" ).server ,
14
15
})
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ T["debounce"]["debounces calls to a function"] = function()
19
19
_G .called = _G .called + 1
20
20
end
21
21
22
- local debounced_fn = require (" copilot-lsp.util" ).debounce (fn , 500 )
22
+ local debounced_fn = require (" copilot-lsp.util" ).debounce (fn , 450 )
23
23
debounced_fn ()
24
24
end )
25
25
@@ -46,7 +46,7 @@ T["debounce"]["function is called with final calls params"] = function()
46
46
_G .called = a
47
47
end
48
48
49
- local debounced_fn = require (" copilot-lsp.util" ).debounce (fn , 500 )
49
+ local debounced_fn = require (" copilot-lsp.util" ).debounce (fn , 450 )
50
50
debounced_fn (1 )
51
51
debounced_fn (2 )
52
52
debounced_fn (3 )
@@ -72,7 +72,7 @@ T["debounce"]["function is only called once"] = function()
72
72
table.insert (_G .called , a )
73
73
end
74
74
75
- _G .debounced_fn = require (" copilot-lsp.util" ).debounce (fn , 250 )
75
+ _G .debounced_fn = require (" copilot-lsp.util" ).debounce (fn , 200 )
76
76
end )
77
77
78
78
child .lua_func (function ()
You can’t perform that action at this time.
0 commit comments