Skip to content

Commit

Permalink
Silence no handler warnings for processid & telemetry events
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Feb 3, 2025
1 parent f430940 commit 3cdd09f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/jdtls/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,13 @@ function M.setup_dap(opts)
end
opts = opts or {}
default_config_overrides = opts.config_overrides or {}

-- Silence warnings for custom events from java-debug
dap.listeners.before["event_processid"]["jdtls"] = function()
end
dap.listeners.before["event_telemetry"]["jdtls"] = function()
end

dap.listeners.before['event_hotcodereplace']['jdtls'] = function(session, body)
if body.changeType == hotcodereplace_type.BUILD_COMPLETE then
if opts.hotcodereplace == 'auto' then
Expand Down

0 comments on commit 3cdd09f

Please sign in to comment.