Skip to content

ReferenceProvider

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.ReferenceProvider.html

引用提供程序接口定义了扩展和查找引用功能之间的约定。

ts
interface ReferenceProvider {
    provideReferences(model, position, context, token): ProviderResult<Location[]>;
}

provideReferences