python: Use a single workspace folder for basedpyright (#35292)

Cole Miller created

Treat the new basedpyright adapter the same as pyright was treated in
#35243.

Release Notes:

- N/A

Change summary

crates/languages/src/python.rs | 4 ++++
1 file changed, 4 insertions(+)

Detailed changes

crates/languages/src/python.rs 🔗

@@ -1625,6 +1625,10 @@ impl LspAdapter for BasedPyrightLspAdapter {
     fn manifest_name(&self) -> Option<ManifestName> {
         Some(SharedString::new_static("pyproject.toml").into())
     }
+
+    fn workspace_folders_content(&self) -> WorkspaceFoldersContent {
+        WorkspaceFoldersContent::WorktreeRoot
+    }
 }
 
 #[cfg(test)]