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:
parent
42bf5a17b9
commit
39dfd52d04
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue