Allow users to configure host, port and timeout for build in TCP adapters (#56)

* Remove space in cargo.toml

* Add TCPHost for Javascript and PHP adapter

* Allow falling back to first open port

* Add some more docs to TCPHost

* Fix cached binaries prevent from having multiple debug sessions for one adapters

This was an issue, because we stored the port arg inside the DebugAdapterBinary which was cached so could not change anymore.

Co-authored-by: Anthony Eid <hello@anthonyeid.me>

* Add default setting for tcp timeout

Co-Authored-By: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>

---------

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
This commit is contained in:
Remco Smits
2024-10-27 12:16:09 +01:00
committed by GitHub
parent d279afa41c
commit f7eb5213a5
14 changed files with 166 additions and 102 deletions

View File

@@ -2,7 +2,6 @@ use dap::transport::{StdioTransport, Transport};
use crate::*;
#[derive(Debug, Eq, PartialEq, Clone)]
pub(crate) struct PythonDebugAdapter {}
impl PythonDebugAdapter {