CodeLensProvider
ts
interface CodeLensProvider {
onDidChange?: IEvent<CodeLensProvider>;
provideCodeLenses(model, token): ProviderResult<CodeLensList>;
resolveCodeLens?(model, codeLens, token): ProviderResult<CodeLens>;
}
onDidChange
provideCodeLenses
- 语法:
provideCodeLenses(model, token): ProviderResult<CodeLensList>
- 参数:
model
ITextModeltoken
CancellationToken
- 返回值:ProviderResult
<
CodeLens>
resolveCodeLens
- 语法:
resolveCodeLens(model, codeLens, token): ProviderResult<CodeLens>
- 参数:
model
ITextModelcodeLens
CodeLenstoken
CancellationToken
- 返回值:ProviderResult
<
CodeLens>