TextDocumentData

class TextDocumentData

Data used to initialize new text documents with.

Members defined in TextDocumentData (5 members)

content

RW

The actual contents of the text document, e.g. file contents.

language

RW

Language identifier of the text document, e.g. "sysml".

url

RW

Location of the text document.

version

RW

Initial version of the text document.

__init__

Attributes

property content: str

The actual contents of the text document, e.g. file contents.

Once set, can only be modified by edits.

property language: str

Language identifier of the text document, e.g. "sysml".

Once set, it cannot be changed.

property url: syside.Url

Location of the text document.

Once set, it cannot be changed.

property version: int

Initial version of the text document.

Version is used to cheaply track the edits done to the text document.

Methods

__init__(url: syside.Url, language: str, content: str, version: int = 0) None
Used in