SelectionRangeProvider
原文链接
https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.SelectionRangeProvider.html
ts
interface SelectionRangeProvider {
provideSelectionRanges(model, positions, token): ProviderResult<SelectionRange[][]>;
}provideSelectionRanges
- 语法:
provideSelectionRanges(model, positions, token): ProviderResult<SelectionRange[][]> - 参数:
model: ITextModelpositions: Position[]token: CancellationToken
- 返回值:ProviderResult<SelectionRange[][]>
