Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAP: support custom request in session class #939

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def process_protocol_request req
fail_response req
end
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 @@ -712,7 +712,11 @@ def dap_event args
when :completions
@ui.respond req, result
else
raise "unsupported: #{args.inspect}"
if respond_to? mid = "custom_dap_request_event_#{type}"
__send__ mid, req
else
raise "unsupported: #{args.inspect}"
end
end
end

Expand Down