Skip to content

Commit

Permalink
commit vscode.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
0mkara committed Aug 21, 2023
1 parent b06bc2a commit 45a41e5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4150,6 +4150,26 @@ declare module 'vscode' {
* signaled by returning `undefined`, `null`, or an empty array.
*/
provideDocumentRangeFormattingEdits(document: TextDocument, range: Range, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;


/**
* Provide formatting edits for multiple ranges in a document.
*
* This function is optional but allows a formatter to perform faster when formatting only modified ranges or when
* formatting a large number of selections.
*
* The given ranges are hints and providers can decide to format a smaller
* or larger range. Often this is done by adjusting the start and end
* of the range to full syntax nodes.
*
* @param document The document in which the command was invoked.
* @param ranges The ranges which should be formatted.
* @param options Options controlling formatting.
* @param token A cancellation token.
* @return A set of text edits or a thenable that resolves to such. The lack of a result can be
* signaled by returning `undefined`, `null`, or an empty array.
*/
provideDocumentRangesFormattingEdits?(document: TextDocument, ranges: Range[], options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;
}

/**
Expand Down Expand Up @@ -15980,7 +16000,7 @@ declare module 'vscode' {
* @param id The unique identifier of the provider.
* @param label The human-readable name of the provider.
* @param provider The authentication provider provider.
* @params options Additional options for the provider.
* @param options Additional options for the provider.
* @return A {@link Disposable} that unregisters this provider when being disposed.
*/
export function registerAuthenticationProvider(id: string, label: string, provider: AuthenticationProvider, options?: AuthenticationProviderOptions): Disposable;
Expand Down

0 comments on commit 45a41e5

Please sign in to comment.