Theia API Documentation v1.65.0
    Preparing search index...
    Index

    Properties

    value: string

    The raw string value of the kind.

    The root kind for basic text edits.

    This kind should be used for edits that insert basic text into the document. A good example of this is an edit that pastes the clipboard text while also updating imports in the file based on the pasted text. For this we could use a kind such as text.updateImports.someLanguageId.

    Even though most drop/paste edits ultimately insert text, you should not use Text as the base kind for every edit as this is redundant. Instead a more specific kind that describes the type of content being inserted should be used instead. For example, if the edit adds a Markdown link, use markdown.link since even though the content being inserted is text, it's more important to know that the edit inserts Markdown syntax.

    TextUpdateImports: DocumentDropOrPasteEditKind

    Root kind for edits that update imports in a document in addition to inserting text.

    Methods