debugger: Always show process list in attach (#28685)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-04-15 14:13:19 +02:00 committed by GitHub
parent d4a985a6e3
commit 98d001bad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 78 additions and 112 deletions

View file

@ -1,24 +1,13 @@
use adapters::latest_github_release;
use gpui::AsyncApp;
use regex::Regex;
use std::path::PathBuf;
use task::{DebugRequestType, DebugTaskDefinition};
use crate::*;
#[derive(Debug)]
pub(crate) struct JsDebugAdapter {
attach_processes: Regex,
}
pub(crate) struct JsDebugAdapter;
impl Default for JsDebugAdapter {
fn default() -> Self {
Self {
attach_processes: Regex::new(r"(?i)^(?:node|bun|iojs)(?:$|\b)")
.expect("Regex compilation to succeed"),
}
}
}
impl JsDebugAdapter {
const ADAPTER_NAME: &'static str = "JavaScript";
const ADAPTER_NPM_NAME: &'static str = "vscode-js-debug";
@ -149,8 +138,4 @@ impl DebugAdapter for JsDebugAdapter {
}
args
}
fn attach_processes_filter(&self) -> Regex {
self.attach_processes.clone()
}
}