From 7878eacc7348d23468370b24b1412b78d86c967e Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 29 Jul 2025 15:00:41 -0400 Subject: [PATCH] python: Use a single workspace folder for basedpyright (#35292) Treat the new basedpyright adapter the same as pyright was treated in #35243. Release Notes: - N/A --- crates/languages/src/python.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs index 4a0cc7078b..0524c02fd5 100644 --- a/crates/languages/src/python.rs +++ b/crates/languages/src/python.rs @@ -1625,6 +1625,10 @@ impl LspAdapter for BasedPyrightLspAdapter { fn manifest_name(&self) -> Option { Some(SharedString::new_static("pyproject.toml").into()) } + + fn workspace_folders_content(&self) -> WorkspaceFoldersContent { + WorkspaceFoldersContent::WorktreeRoot + } } #[cfg(test)]