Function

Idelsp_decode_text_edit

Declaration

IdeTextEdit*
ide_lsp_decode_text_edit (
  GVariant* text_edit,
  GFile* gfile
)

Description

Attempt to parse an encoded LSP text edit into an IdeTextEdit.

Parameters

text_edit

Type: GVariant

An lsp text edit encoded in a variant.

The data is owned by the caller of the function.
gfile

Type: GFile

The file the edit should be applied to.

The data is owned by the caller of the function.

Return value

Type: IdeTextEdit

An IdeTextEdit See_also: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textEdit.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.