applyAuthoringRename
@gooi/language-server / features/rename/apply-authoring-rename / applyAuthoringRename
Function: applyAuthoringRename()
applyAuthoringRename(
value): {edit: {changes:object[]; };ok:true;parity: {issues:object[];lockfileHash:string;status:"matched"|"mismatch"; }; } | {error: {code:"authoring_symbol_error"|"rename_conflict_error";message:string; };ok:false;parity: {issues:object[];lockfileHash:string;status:"matched"|"mismatch"; }; }
Defined in: authoring/language-server/src/features/rename/apply-authoring-rename.ts:19
Applies rename edits for textDocument/rename handlers.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | Untrusted rename request. |
Returns
{ edit: { changes: object[]; }; ok: true; parity: { issues: object[]; lockfileHash: string; status: "matched" | "mismatch"; }; } | { error: { code: "authoring_symbol_error" | "rename_conflict_error"; message: string; }; ok: false; parity: { issues: object[]; lockfileHash: string; status: "matched" | "mismatch"; }; }
Structured rename result with workspace edits or conflict error.
Example
const result = applyAuthoringRename({ context, position, newName: "next_name" });