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
This commit is contained in:
Cole Miller authored and GitHub committed 2025-07-29 19:00:41 +00:00
1 parent 86486f3418
commit 1f8ce6229c
1 file changed
+4
+4
View File
@@ -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)]