Skip to main content

flatten_workspace_edit

Function flatten_workspace_edit 

Source
pub fn flatten_workspace_edit(we: WorkspaceEdit) -> Vec<(Uri, Vec<TextEdit>)>
Expand description

Flatten a WorkspaceEdit into a per-file Vec<(Uri, Vec<TextEdit>)>. Handles both the legacy changes map and the modern document_changes shape (create/rename/delete ops skipped in v1; rename returns plain text edits for ~100% of identifier rewrites).

Phase 5.8.AA.l.5: hoisted from lattice-ui-tui::app::flatten_workspace_edit.