Skip to content

Commit

Permalink
DAP: rename the method name of custom request
Browse files Browse the repository at this point in the history
Follow up for #939

Change the name from "request_..." to "custom_dap_request_" in UI_DAP and ThreadClient for consistency
  • Loading branch information
ono-max authored and ko1 committed Mar 24, 2023
1 parent a4afb8c commit 1ce0061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def process
@q_msg << req

else
if respond_to? mid = "request_#{req['command']}"
if respond_to? mid = "custom_dap_request_#{req['command']}"
__send__ mid, req
else
raise "Unknown request: #{req.inspect}"
Expand Down Expand Up @@ -973,7 +973,7 @@ def process_dap args
}

else
if respond_to? mid = "request_#{type}"
if respond_to? mid = "custom_dap_request_#{type}"
__send__ mid, req
else
raise "Unknown request: #{args.inspect}"
Expand Down

0 comments on commit 1ce0061

Please sign in to comment.