InlayHintsProvider
原文链接
https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.InlayHintsProvider.html
ts
interface InlayHintsProvider {
displayName?: string;
onDidChangeInlayHints?: IEvent<void>;
provideInlayHints(model, range, token): ProviderResult<InlayHintList>;
resolveInlayHint?(hint, token): ProviderResult<InlayHint>;
}
displayName
- 类型:
string
onDidChangeInlayHints
- 类型:IEvent
<void>
provideInlayHints
- 语法:
provideInlayHints(model, range, token): ProviderResult<InlayHintList>
- 参数:
model
:ITextModelrange
: Rangetoken
: CancellationToken
- 返回值:ProviderResult<InlayHint>
resolveInlayHint
- 语法:
resolveInlayHint(hint, token): ProviderResult<InlayHint>
- 参数:
hint
:InlayHinttoken
:CancellationToken
- 返回值:ProviderResult<InlayHint>