Constructors

Properties

context: ExtensionContext
currentFile: undefined | string
lastFile: undefined | string
newVersionFlag: boolean = true
recursiveCount: number

Accessors

  • get ActivePineEditor(): undefined | boolean
  • Returns undefined | boolean

  • get ActivePineFile(): undefined | boolean
  • Returns undefined | boolean

  • get CurrentFile(): undefined | string
  • Returns undefined | string

  • get CursorPosition(): undefined | number
  • Returns undefined | number

  • get Document(): undefined | TextDocument
  • Returns undefined | TextDocument

  • get Editor(): undefined | TextEditor
  • Returns undefined | TextEditor

  • get ExecuteCommands(): (<T>(command, ...rest) => Thenable<T>)
  • Returns (<T>(command, ...rest) => Thenable<T>)

      • <T>(command, ...rest): Thenable<T>
      • Executes the command denoted by the given command identifier.

        • Note 1: When executing an editor command not all types are allowed to be passed as arguments. Allowed are the primitive types string, boolean, number, undefined, and null, as well as Position, Range, Uri and Location.
        • Note 2: There are no restrictions when executing commands that have been contributed by extensions.

        Type Parameters

        • T = unknown

        Parameters

        • command: string

          Identifier of the command to execute.

        • Rest ...rest: any[]

          Parameters passed to the command function.

        Returns Thenable<T>

        A thenable that resolves to the returned value of the given command. Returns undefined when the command handler function doesn't return anything.

  • get FileName(): undefined | string
  • Returns undefined | string

  • get LanguageId(): undefined | string
  • Returns undefined | string

  • get LastFile(): undefined | string
  • Returns undefined | string

  • get LineAt(): undefined | string
  • Returns undefined | string

  • get LineCount(): undefined | number
  • Returns undefined | number

  • get RegisterCommand(): ((command, callback, thisArg?) => Disposable)
  • Returns ((command, callback, thisArg?) => Disposable)

      • (command, callback, thisArg?): Disposable
      • Registers a command that can be invoked via a keyboard shortcut, a menu item, an action, or directly.

        Registering a command with an existing command identifier twice will cause an error.

        Parameters

        • command: string

          A unique identifier for the command.

        • callback: ((...args) => any)

          A command handler function.

            • (...args): any
            • Parameters

              • Rest ...args: any[]

              Returns any

        • Optional thisArg: any

          The this context used when invoking the handler function.

        Returns Disposable

        Disposable which unregisters this command on disposal.

  • get Scheme(): undefined | string
  • Returns undefined | string

  • get SelectedText(): undefined | string
  • Returns undefined | string

  • get Selection(): undefined | Selection
  • Returns undefined | Selection

  • get SelectionRange(): undefined | Range
  • Returns undefined | Range

  • get TextEditor(): undefined | TextEditor
  • Returns undefined | TextEditor

  • get getCommands(): ((filterInternal?) => Thenable<string[]>)
  • Returns ((filterInternal?) => Thenable<string[]>)

      • (filterInternal?): Thenable<string[]>
      • Retrieve the list of all available commands. Commands starting with an underscore are treated as internal commands.

        Parameters

        • Optional filterInternal: boolean

          Set true to not see internal commands (starting with an underscore)

        Returns Thenable<string[]>

        Thenable that resolves to a list of command ids.

Methods

  • Returns undefined | string

  • Parameters

    • line: number

    Returns undefined | string

  • Returns undefined | string

  • Returns undefined | TextDocument

  • Returns undefined | TextEditor

  • Returns typeof languages

  • Parameters

    • line: number = 0
    • character: number = 0

    Returns Position

  • Returns undefined | Selection

  • Returns typeof workspace

  • Returns ExtensionContext

  • Parameters

    • range: undefined | Range = undefined

    Returns undefined | string

  • Returns undefined | boolean

  • Returns undefined | boolean

  • Parameters

    • context: ExtensionContext

    Returns void

  • Parameters

    • newVersionBool: boolean

    Returns void

Generated using TypeDoc