MCPcopy Create free account
hub / github.com/GCWing/BitFun / lsp_close_workspace

Function lsp_close_workspace

src/apps/desktop/src/api/lsp_workspace_api.rs:200–207  ·  view source on GitHub ↗
(request: OpenWorkspaceRequest)

Source from the content-addressed store, hash-verified

198
199#[tauri::command]
200pub async fn lsp_close_workspace(request: OpenWorkspaceRequest) -> Result<(), String> {
201 let workspace_path = PathBuf::from(&request.workspace_path);
202 close_workspace(workspace_path)
203 .await
204 .map_err(|e| format!("Failed to close workspace: {}", e))?;
205
206 Ok(())
207}
208
209#[tauri::command]
210pub async fn lsp_open_document(request: OpenDocumentRequest) -> Result<(), String> {

Callers

nothing calls this directly

Calls 1

close_workspaceFunction · 0.70

Tested by

no test coverage detected