Index

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Events

Functions

Type aliases

CharacterPair

CharacterPair: [string, string]

A tuple of two characters, like a pair of opening and closing brackets.

Definition

Definition: Location | Location[] | LocationLink[]

IMonarchLanguageAction

IMonarchLanguageRule

IShortMonarchLanguageAction

IShortMonarchLanguageAction: string

An action is either an array of actions... ... or a case statement with guards... ... or a basic action with a token value.

IShortMonarchLanguageRule1

IShortMonarchLanguageRule1: [string | RegExp, IMonarchLanguageAction]

A rule is either a regular expression and an action shorthands: [reg,act] == { regex: reg, action: act} and : [reg,act,nxt] == { regex: reg, action: act{ next: nxt }}

IShortMonarchLanguageRule2

IShortMonarchLanguageRule2: [string | RegExp, IMonarchLanguageAction, string]

ProviderResult

ProviderResult<T>: T | undefined | null | Thenable<T | undefined | null>

A provider result represents the values a provider, like the HoverProvider, may return. For once this is the actual result type T, like Hover, or a thenable that resolves to that type T. In addition, null and undefined can be returned - either directly or from a thenable.

Type parameters

  • T

TextEdit

TextEdit: { eol?: EndOfLineSequence; range: IRange; text: string }

Type declaration

Events

onLanguage

  • onLanguage(languageId: string, callback: () => void): IDisposable
  • An event emitted when a language is first time needed (e.g. a model has it set).

    Parameters

    • languageId: string
    • callback: () => void
        • (): void
        • Returns void

    Returns IDisposable

Functions

getEncodedLanguageId

  • getEncodedLanguageId(languageId: string): number

getLanguages

register

registerCodeActionProvider

registerCodeLensProvider

registerColorProvider

registerCompletionItemProvider

registerDeclarationProvider

registerDefinitionProvider

registerDocumentFormattingEditProvider

registerDocumentHighlightProvider

registerDocumentRangeFormattingEditProvider

registerDocumentRangeSemanticTokensProvider

registerDocumentSemanticTokensProvider

registerDocumentSymbolProvider

registerFoldingRangeProvider

registerHoverProvider

registerImplementationProvider

registerInlayHintsProvider

registerInlineCompletionsProvider

registerLinkProvider

registerLinkedEditingRangeProvider

registerOnTypeFormattingEditProvider

registerReferenceProvider

registerRenameProvider

registerSelectionRangeProvider

registerSignatureHelpProvider

registerTypeDefinitionProvider

setColorMap

  • setColorMap(colorMap: string[] | null): void
  • Change the color map that is used for token colors. Supported formats (hex): #RRGGBB, $RRGGBBAA, #RGB, #RGBA

    Parameters

    • colorMap: string[] | null

    Returns void

setLanguageConfiguration

setMonarchTokensProvider

setTokensProvider