Get a basic end-to-end test for rust-analyzer integration working
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
Max Brunsfeld
parent
9759f9e947
commit
580bad2042
@@ -322,12 +322,11 @@ pub struct Workspace {
|
||||
|
||||
impl Workspace {
|
||||
pub fn new(params: &WorkspaceParams, cx: &mut ViewContext<Self>) -> Self {
|
||||
let project = cx.add_model(|cx| {
|
||||
let project = cx.add_model(|_| {
|
||||
Project::new(
|
||||
params.languages.clone(),
|
||||
params.client.clone(),
|
||||
params.fs.clone(),
|
||||
cx,
|
||||
)
|
||||
});
|
||||
cx.observe(&project, |_, _, cx| cx.notify()).detach();
|
||||
|
||||
Reference in New Issue
Block a user