Start on integrating rust-analyzer
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
a0c8b60a1b
commit
2c6aeaed7c
@@ -322,11 +322,12 @@ pub struct Workspace {
|
||||
|
||||
impl Workspace {
|
||||
pub fn new(params: &WorkspaceParams, cx: &mut ViewContext<Self>) -> Self {
|
||||
let project = cx.add_model(|_| {
|
||||
let project = cx.add_model(|cx| {
|
||||
Project::new(
|
||||
params.languages.clone(),
|
||||
params.client.clone(),
|
||||
params.fs.clone(),
|
||||
cx.background(),
|
||||
)
|
||||
});
|
||||
cx.observe(&project, |_, _, cx| cx.notify()).detach();
|
||||
|
||||
Reference in New Issue
Block a user