We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea095e8 commit ae35ab3Copy full SHA for ae35ab3
lua/opencode/event_manager.lua
@@ -214,14 +214,12 @@ function EventManager:emit(event_name, data)
214
local event = { type = event_name, properties = data }
215
216
if require('opencode.config').debug.capture_streamed_events then
217
- vim.schedule(function()
218
- table.insert(self.captured_events, vim.deepcopy(event))
219
- end)
+ table.insert(self.captured_events, vim.deepcopy(event))
220
end
221
222
-- schedule events to allow for similar pieces of state to be updated
223
for _, callback in ipairs(listeners) do
224
- pcall(vim.schedule_wrap(callback), data)
+ pcall(callback, data)
225
226
227
0 commit comments