@@ -14,8 +14,8 @@ use crate::{
1414} ;
1515
1616use codemp_proto:: {
17+ buffer:: { BufferAttributes , BufferNode , BufferPath } ,
1718 common:: Empty ,
18- files:: { BufferAttributes , BufferNode , BufferPath } ,
1919 workspace:: { WorkspaceEvent , WorkspaceEventKind } ,
2020} ;
2121
@@ -467,7 +467,7 @@ impl WorkspaceWorker {
467467 }
468468 } ,
469469
470- WorkspaceEventKind :: FileCreate => {
470+ WorkspaceEventKind :: BufferCreate => {
471471 if let ( Some ( path) , Some ( attributes) ) = ( event. path, event. attributes) {
472472 inner. buffer_users. insert( path. clone( ) , Vec :: new( ) ) ;
473473 inner. filetree. insert( path. clone( ) , BufferNode {
@@ -476,7 +476,7 @@ impl WorkspaceWorker {
476476 } ) ;
477477 }
478478 }
479- WorkspaceEventKind :: FileRename => {
479+ WorkspaceEventKind :: BufferRename => {
480480 if let ( Some ( before) , Some ( after) ) = ( event. path, event. after) {
481481 if let Some ( ( _path, controller) ) = inner. buffers. remove( & before) {
482482 inner. buffers. insert( after. clone( ) , controller) ;
@@ -489,14 +489,14 @@ impl WorkspaceWorker {
489489 }
490490 }
491491 }
492- WorkspaceEventKind :: FileDelete => {
492+ WorkspaceEventKind :: BufferDelete => {
493493 if let Some ( path) = event. path {
494494 inner. filetree. remove( & path) ;
495495 inner. buffer_users. remove( & path) ;
496496 let _ = inner. buffers. remove( & path) ;
497497 }
498498 }
499- WorkspaceEventKind :: FileAttrsUpdated => {
499+ WorkspaceEventKind :: BufferAttrsUpdated => {
500500 if let ( Some ( path) , Some ( attributes) ) = ( event. path, event. attributes) {
501501 if let Some ( mut r) = inner. filetree. get_mut( & path) {
502502 r. attributes = attributes;
0 commit comments