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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user