Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodeLens

A code lens represents a Command that should be shown along with source text, like the number of references, a way to run tests, etc.

A code lens is unresolved when no command is associated to it. For performance reasons the creation of a code lens and resolving should be done to two stages.

see

CodeLensProvider.provideCodeLenses

see

CodeLensProvider.resolveCodeLens

Hierarchy

  • CodeLens

Index

Constructors(1)

Properties(3)

Constructors(1)

constructor

  • Creates a new code lens object.

    Parameters

    • range: Range

      The range to which this code lens applies.

    • Optional command: Command

      The command associated to this code lens.

    Returns CodeLens

Properties(3)

range

range: Range

The range in which this code lens is valid. Should only span a single line.

Optional command

command: Command

The command this code lens represents.

Readonly isResolved

isResolved: boolean

true when there is a command associated.

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网