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 committed by GitHub
parent 42bf5a17b9
commit 39dfd52d04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()