diff --git a/crates/ruff_server/src/server.rs b/crates/ruff_server/src/server.rs index 5bce4bf794..b2a51a2a15 100644 --- a/crates/ruff_server/src/server.rs +++ b/crates/ruff_server/src/server.rs @@ -52,9 +52,8 @@ impl Server { let workspaces = init_params .workspace_folders .map(|folders| folders.into_iter().map(|folder| folder.uri).collect()) - .or_else(|| init_params.root_uri.map(|u| vec![u])) .or_else(|| { - tracing::debug!("No root URI or workspace(s) were provided during initialization. Using the current working directory as a default workspace..."); + tracing::debug!("No workspace(s) were provided during initialization. Using the current working directory as a default workspace..."); Some(vec![types::Url::from_file_path(std::env::current_dir().ok()?).ok()?]) }) .ok_or_else(|| {