Skip to content

Commit

Permalink
Notify spawn terminal errors to user
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Dec 26, 2024
1 parent ca970dd commit 4afb9a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/debugger_ui/src/debugger_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ use gpui::{
actions, Action, AppContext, AsyncWindowContext, EventEmitter, FocusHandle, FocusableView,
FontWeight, Model, Subscription, Task, View, ViewContext, WeakView,
};
use project::{dap_store::DapStore, terminals::TerminalKind};
use project::{
dap_store::{DapStore, DapStoreEvent},
terminals::TerminalKind,
};
use rpc::proto::{SetDebuggerPanelItem, UpdateDebugAdapter};
use serde_json::Value;
use settings::Settings;
use std::{any::TypeId, collections::VecDeque, path::PathBuf, u64};
use task::DebugRequestType;
use terminal_view::terminal_panel::TerminalPanel;
use ui::prelude::*;
use util::ResultExt as _;
use workspace::{
dock::{DockPosition, Panel, PanelEvent},
pane, Continue, Disconnect, Pane, Pause, Restart, Start, StepBack, StepInto, StepOut, StepOver,
Expand Down Expand Up @@ -458,6 +462,8 @@ impl DebugPanel {
Ok(pid_task) => match pid_task.await {
Ok(pid) => (true, pid),
Err(_) => (false, None),

(false, None)
},
Err(_) => (false, None),
};
Expand Down

0 comments on commit 4afb9a3

Please sign in to comment.