MCPcopy Create free account
hub / github.com/AI45Lab/Code / file_system_ext

Method file_system_ext

core/src/workspace/mod.rs:854–857  ·  view source on GitHub ↗

Attach optional compare-and-swap file system extensions ([`WorkspaceFileSystemExt`]). Tools that perform read-modify-write cycles will pick this up via [`WorkspaceServices::read_for_edit`] and [`WorkspaceServices::write_for_edit`].

(mut self, ext: Arc<dyn WorkspaceFileSystemExt>)

Source from the content-addressed store, hash-verified

852 /// cycles will pick this up via [`WorkspaceServices::read_for_edit`]
853 /// and [`WorkspaceServices::write_for_edit`].
854 pub fn file_system_ext(mut self, ext: Arc<dyn WorkspaceFileSystemExt>) -> Self {
855 self.file_system_ext = Some(ext);
856 self
857 }
858
859 /// Apply a default timeout to non-bash workspace operations (file system,
860 /// search, git). Backends that may stall — remote, browser, DFS — should

Calls

no outgoing calls