python: Create DAP download directory sooner (#35986)

Closes #35980

Release Notes:

- Fixed Python Debug sessions not starting up when a session is started
up for the first time.
This commit is contained in:
Piotr Osiewicz 2025-08-11 18:50:24 +02:00
parent e24aa382a4
commit 008e905b44

View file

@ -152,6 +152,9 @@ impl PythonDebugAdapter {
maybe!(async move {
let response = latest_release.filter(|response| response.status().is_success())?;
let download_dir = debug_adapters_dir().join(Self::ADAPTER_NAME);
std::fs::create_dir_all(&download_dir).ok()?;
let mut output = String::new();
response
.into_body()