Index

Modules

Functions

Enumerations

Classes

Interfaces

Type aliases

Events

Functions

getEncodedLanguageId

  • getEncodedLanguageId(languageId: string): number

getLanguages

  • getLanguages(): ILanguageExtensionPoint[]
  • Get the information of all the registered languages.

    Returns ILanguageExtensionPoint[]

register

registerCodeActionProvider

registerCodeLensProvider

registerColorProvider

registerCompletionItemProvider

registerDeclarationProvider

registerDefinitionProvider

registerDocumentFormattingEditProvider

registerDocumentHighlightProvider

registerDocumentRangeFormattingEditProvider

registerDocumentSymbolProvider

registerFoldingRangeProvider

registerHoverProvider

registerImplementationProvider

registerLinkProvider

registerOnTypeFormattingEditProvider

registerReferenceProvider

registerRenameProvider

registerSelectionRangeProvider

registerSignatureHelpProvider

registerTypeDefinitionProvider

setLanguageConfiguration

setMonarchTokensProvider

setTokensProvider

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

IMonarchLanguageAction: IShortMonarchLanguageAction | IExpandedMonarchLanguageAction | IShortMonarchLanguageAction[] | IExpandedMonarchLanguageAction[]

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: [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: [RegExp, IMonarchLanguageAction, string]

ProviderResult

ProviderResult: 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.

TextEdit

TextEdit: object

Type declaration

Events

onLanguage

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

    Parameters

    • languageId: string
    • callback: function
        • (): void
        • Returns void

    Returns IDisposable