DocumentRangeFormattingEditProvider
小于 1 分钟
DocumentRangeFormattingEditProvider
interface
官网地址
属性 Properties
displayName
- 类型:
string
可选
只读
- 默认值:
-
- 可选项:
-
- 描述: ``
方法 Methods
provideDocumentRangeFormattingEdits
- 语法:
provideDocumentRangeFormattingEdits(model: ITextModel, range: Range, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>
- 参数:
- model: ITextModel
- range: Range
- position: FormattingOptions
- token: CancellationToken
- 返回值: ProviderResult<TextEdit>`
- 描述: ``
provideDocumentRangesFormattingEdits
- 语法:
provideDocumentRangesFormattingEdits(model: ITextModel, ranges: Range[], options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>
- 参数:
- model: ITextModel
- ranges: Range[]
- position: FormattingOptions
- token: CancellationToken
- 返回值: ProviderResult<TextEdit>`
- 描述: ``