extension/dap: Add resolve_tcp_template function (#31010)

Extensions cannot look up available port themselves, hence the new API.
With this I'm able to port our Ruby implementation into an extension.

Release Notes:

- N/A
e5670ba081Piotr Osiewicz committed on 5/20/2025, 1:17:13 PM· committed by GitHubparente4262f9
6 files changedLine totals unavailable