@@ -102,10 +102,10 @@ impl LogStore {
102
102
fn new ( cx : & ModelContext < Self > ) -> Self {
103
103
let ( rpc_tx, mut rpc_rx) = unbounded :: < ( DebugAdapterClientId , IoKind , String ) > ( ) ;
104
104
cx. spawn ( |this, mut cx| async move {
105
- while let Some ( ( server_id , io_kind, message) ) = rpc_rx. next ( ) . await {
105
+ while let Some ( ( client_id , io_kind, message) ) = rpc_rx. next ( ) . await {
106
106
if let Some ( this) = this. upgrade ( ) {
107
107
this. update ( & mut cx, |this, cx| {
108
- this. on_rpc_log ( server_id , io_kind, & message, cx) ;
108
+ this. on_rpc_log ( client_id , io_kind, & message, cx) ;
109
109
} ) ?;
110
110
}
111
111
@@ -118,10 +118,10 @@ impl LogStore {
118
118
let ( adapter_log_tx, mut adapter_log_rx) =
119
119
unbounded :: < ( DebugAdapterClientId , IoKind , String ) > ( ) ;
120
120
cx. spawn ( |this, mut cx| async move {
121
- while let Some ( ( server_id , io_kind, message) ) = adapter_log_rx. next ( ) . await {
121
+ while let Some ( ( client_id , io_kind, message) ) = adapter_log_rx. next ( ) . await {
122
122
if let Some ( this) = this. upgrade ( ) {
123
123
this. update ( & mut cx, |this, cx| {
124
- this. on_adapter_log ( server_id , io_kind, & message, cx) ;
124
+ this. on_adapter_log ( client_id , io_kind, & message, cx) ;
125
125
} ) ?;
126
126
}
127
127
@@ -387,7 +387,7 @@ impl Render for DapLogToolbarItemView {
387
387
let dap_menu: PopoverMenu < _ > = PopoverMenu :: new ( "DapLogView" )
388
388
. anchor ( gpui:: Corner :: TopLeft )
389
389
. trigger ( Button :: new (
390
- "debug_server_menu_header " ,
390
+ "debug_client_menu_header " ,
391
391
current_client
392
392
. map ( |sub_item| {
393
393
Cow :: Owned ( format ! (
@@ -400,7 +400,7 @@ impl Render for DapLogToolbarItemView {
400
400
}
401
401
) )
402
402
} )
403
- . unwrap_or_else ( || "No server selected" . into ( ) ) ,
403
+ . unwrap_or_else ( || "No adapter selected" . into ( ) ) ,
404
404
) )
405
405
. menu ( move |cx| {
406
406
let log_view = log_view. clone ( ) ;
@@ -434,7 +434,7 @@ impl Render for DapLogToolbarItemView {
434
434
. into_any_element ( )
435
435
} ,
436
436
cx. handler_for ( & log_view, move |view, cx| {
437
- view. show_log_messages_for_server ( sub_item. client_id , cx) ;
437
+ view. show_log_messages_for_adapter ( sub_item. client_id , cx) ;
438
438
} ) ,
439
439
) ;
440
440
}
@@ -646,7 +646,7 @@ impl DapLogView {
646
646
cx. focus ( & self . focus_handle ) ;
647
647
}
648
648
649
- fn show_log_messages_for_server (
649
+ fn show_log_messages_for_adapter (
650
650
& mut self ,
651
651
client_id : DebugAdapterClientId ,
652
652
cx : & mut ViewContext < Self > ,
@@ -711,7 +711,7 @@ impl Render for DapLogView {
711
711
}
712
712
}
713
713
714
- actions ! ( debug, [ OpenDebuggerServerLogs ] ) ;
714
+ actions ! ( debug, [ OpenDebuggerAdapterLogs ] ) ;
715
715
716
716
pub fn init ( cx : & mut AppContext ) {
717
717
let log_store = cx. new_model ( |cx| LogStore :: new ( cx) ) ;
@@ -725,7 +725,7 @@ pub fn init(cx: &mut AppContext) {
725
725
}
726
726
727
727
let log_store = log_store. clone ( ) ;
728
- workspace. register_action ( move |workspace, _: & OpenDebuggerServerLogs , cx| {
728
+ workspace. register_action ( move |workspace, _: & OpenDebuggerAdapterLogs , cx| {
729
729
let project = workspace. project ( ) . read ( cx) ;
730
730
if project. is_local ( ) {
731
731
workspace. add_item_to_active_pane (
0 commit comments