mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
python: Fix detection of Poetry environments (#20669)
We were missing a .configure call, which let to discrepancies with PET output. Release Notes: - Improved detection of Poetry-based environments
This commit is contained in:
parent
204a989758
commit
a650fe0d77
1 changed files with 4 additions and 0 deletions
|
@ -413,6 +413,10 @@ impl ToolchainLister for PythonToolchainProvider {
|
||||||
);
|
);
|
||||||
let mut config = Configuration::default();
|
let mut config = Configuration::default();
|
||||||
config.workspace_directories = Some(vec![worktree_root]);
|
config.workspace_directories = Some(vec![worktree_root]);
|
||||||
|
for locator in locators.iter() {
|
||||||
|
locator.configure(&config);
|
||||||
|
}
|
||||||
|
|
||||||
let reporter = pet_reporter::collect::create_reporter();
|
let reporter = pet_reporter::collect::create_reporter();
|
||||||
pet::find::find_and_report_envs(&reporter, config, &locators, &environment, None);
|
pet::find::find_and_report_envs(&reporter, config, &locators, &environment, None);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue