CodeLensProvider

A code lens provider adds commands to source text. The commands will be shown as dedicated horizontal lines in between the source text.

Online Documentation

Properties

Link copied to clipboard

An optional event to signal that the code lenses from this provider have changed.

Link copied to clipboard
abstract var resolveCodeLens: (codeLens: T, token: CancellationToken) -> ProviderResult<T>?

This function will be called for each visible code lens, usually when scrolling and after calls to compute-lenses.

Functions

Link copied to clipboard

Compute a list of lenses. This call should return as fast as possible and if computing the commands is expensive implementors should only return code lens objects with the range set and implement resolve.