annotation_id


Description:

public string? annotation_id { get; set; }

An identifier referring to a change annotation managed by a workspace edit.

Usually clients provide options to group the changes along the annotations they are associated with. To support this in the protocol an edit or resource operation refers to a change annotation using an identifier and not the change annotation literal directly. This allows servers to use the identical annotation across multiple edits or resource operations which then allows clients to group the operations under that change annotation. The actual change annotations together with their identifers are managed by the workspace edit via the new property changeAnnotations.

Support for this is guarded by the client capability `workspace.workspaceEdit.changeAnnotationSupport`. If a client doesn’t signal the capability, servers shouldn’t send this back to the client and should leave this set to `null`.

Since:

3.16.0