Skip to content

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

provideInlayHints

resolveInlayHint