forked from zed-industries/zed
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Get variable to send during variable list
- Loading branch information
1 parent
f2575da
commit c95993c
Showing
5 changed files
with
137 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
pub mod adapters; | ||
pub mod client; | ||
pub mod debugger_settings; | ||
pub mod proto_conversions; | ||
pub mod transport; | ||
|
||
pub use dap_types::*; | ||
pub mod debugger_settings; | ||
|
||
#[cfg(any(test, feature = "test-support"))] | ||
pub use adapters::FakeAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use client::proto::DapScope; | ||
|
||
pub trait ProtoConversion { | ||
type DapType; | ||
|
||
fn to_proto(&self) -> Self::DapType; | ||
fn from_proto(payload: Self::DapType) -> Self; | ||
} | ||
|
||
impl ProtoConversion for dap_types::Scope { | ||
type DapType = DapScope; | ||
|
||
fn to_proto(&self) -> Self::DapType { | ||
Self::DapType { | ||
name: self.name.clone(), | ||
presentation_hint: Default::default(), //TODO Debugger Collab | ||
variables_reference: self.variables_reference, | ||
named_variables: self.named_variables, | ||
indexed_variables: self.indexed_variables, | ||
expensive: self.expensive, | ||
source: None, //TODO Debugger Collab | ||
line: self.line, | ||
end_line: self.end_line, | ||
column: self.column, | ||
end_column: self.end_column, | ||
} | ||
} | ||
|
||
fn from_proto(_payload: Self::DapType) -> Self { | ||
todo!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters