Method

LspTextEditset_annotation_id

Declaration

void
lsp_text_edit_set_annotation_id (
  LspTextEdit* self,
  const gchar* value
)

Description

Sets the value of annotation_id.

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.

Parameters

self

Type: LspTextEdit

No description available.

The argument can be NULL.
value

Type: const gchar*

The new value of annotation_id.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.