Options
All
  • Public
  • Public/Protected
  • All
Menu

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

层级

  • CodeLens

索引

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.

VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc