Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace KnownCommands

Index

Type aliases

ConversionFunction

ConversionFunction: ((parameter: any) => any) | undefined

Variables

Const mappings

mappings: {}

Commands that you want to apply custom conversions to rather than pass through the automatic args converter. Would be useful in the case where theia provides some command and you need to provide custom conversions

Type declaration

  • [id: string]: [string, (args: any[] | undefined) => any[] | undefined, undefined | ((results: any[] | undefined) => any[] | undefined)]

Functions

Const CONVERT_MONACO_TO_VSCODE

  • CONVERT_MONACO_TO_VSCODE(args: any | undefined): any

Const CONVERT_VSCODE_TO_MONACO

  • CONVERT_VSCODE_TO_MONACO(args: any[] | undefined): undefined | any[]
  • Mapping of all editor.action commands to their conversion function. executeCommand inside of the plugin command registry will automatically convert incoming arguments from vscode api types to monaco types

    Parameters

    • args: any[] | undefined

    Returns undefined | any[]

createConversionFunction

  • createConversionFunction(...conversions: ConversionFunction[]): (args: any[] | undefined) => any[] | undefined

fromLocationToL

fromPositionToP

fromRangeToR

map

  • map<T>(id: string, args: any[] | undefined, toDo: (mappedId: string, mappedArgs: any[] | undefined, mappedResult: ConversionFunction | undefined) => T): T

mapped

  • mapped(id: string): boolean

monacoToVscodeArgsConverter

  • monacoToVscodeArgsConverter(args: any[]): any

vscodeToMonacoArgsConverter

  • vscodeToMonacoArgsConverter(args: any[]): any