debugger: Remove fake adapter and un-gate GDB (#27557)

This is a clean-up PR in anticipation of introduction of Debugger
Registry. I wanna get rid of DebugAdapterKind (or rather, it being an
enum).
Release Notes:

- N/A

---------

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Anthony <anthony@zed.dev>
This commit is contained in:
Piotr Osiewicz 2025-03-27 23:31:58 +01:00 committed by GitHub
parent 56eb650f09
commit 4839195003
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 1315 additions and 924 deletions

View file

@ -19,6 +19,7 @@ clap.workspace = true
client.workspace = true
clock.workspace = true
collections.workspace = true
dap.workspace = true
env_logger.workspace = true
feature_flags.workspace = true
fs.workspace = true

View file

@ -4,6 +4,7 @@ use clap::Parser;
use client::{Client, UserStore};
use clock::RealSystemClock;
use collections::BTreeMap;
use dap::DapRegistry;
use feature_flags::FeatureFlagAppExt as _;
use gpui::{AppContext as _, AsyncApp, BackgroundExecutor, Entity};
use http_client::{HttpClient, Method};
@ -302,6 +303,7 @@ async fn run_evaluation(
));
let language_registry = Arc::new(LanguageRegistry::new(executor.clone()));
let debug_adapters = Arc::new(DapRegistry::default());
cx.update(|cx| languages::init(language_registry.clone(), node_runtime.clone(), cx))
.unwrap();
@ -346,6 +348,7 @@ async fn run_evaluation(
node_runtime.clone(),
user_store.clone(),
language_registry.clone(),
debug_adapters.clone(),
fs.clone(),
None,
cx,