mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
VSCode merge (#4610)
* Merge from vscode e388c734f30757875976c7e326d6cfeee77710de * fix yarn lcoks * remove small issue
This commit is contained in:
60
src/vs/vscode.d.ts
vendored
60
src/vs/vscode.d.ts
vendored
@@ -3784,6 +3784,48 @@ declare module 'vscode' {
|
||||
provideFoldingRanges(document: TextDocument, context: FoldingContext, token: CancellationToken): ProviderResult<FoldingRange[]>;
|
||||
}
|
||||
|
||||
/**
|
||||
* A selection range represents a part of a selection hierarchy. A selection range
|
||||
* may have a parent selection range that contains it.
|
||||
*/
|
||||
export class SelectionRange {
|
||||
|
||||
/**
|
||||
* The [range](#Range) of this selection range.
|
||||
*/
|
||||
range: Range;
|
||||
|
||||
/**
|
||||
* The parent selection range containing this range.
|
||||
*/
|
||||
parent?: SelectionRange;
|
||||
|
||||
/**
|
||||
* Creates a new selection range.
|
||||
*
|
||||
* @param range The range of the selection range.
|
||||
* @param parent The parent of the selection range.
|
||||
*/
|
||||
constructor(range: Range, parent?: SelectionRange);
|
||||
}
|
||||
|
||||
export interface SelectionRangeProvider {
|
||||
/**
|
||||
* Provide selection ranges for the given positions.
|
||||
*
|
||||
* Selection ranges should be computed individually and independend for each postion. The editor will merge
|
||||
* and deduplicate ranges but providers must return hierarchies of selection ranges so that a range
|
||||
* is [contained](#Range.contains) by its parent.
|
||||
*
|
||||
* @param document The document in which the command was invoked.
|
||||
* @param positions The positions at which the command was invoked.
|
||||
* @param token A cancellation token.
|
||||
* @return Selection ranges or a thenable that resolves to such. The lack of a result can be
|
||||
* signaled by returning `undefined` or `null`.
|
||||
*/
|
||||
provideSelectionRanges(document: TextDocument, positions: Position[], token: CancellationToken): ProviderResult<SelectionRange[]>;
|
||||
}
|
||||
|
||||
/**
|
||||
* A tuple of two characters, like a pair of
|
||||
* opening and closing brackets.
|
||||
@@ -6883,9 +6925,10 @@ declare module 'vscode' {
|
||||
shellPath?: string;
|
||||
|
||||
/**
|
||||
* Args for the custom shell executable, this does not work on Windows (see #8429)
|
||||
* Args for the custom shell executable. A string can be used on Windows only which allows
|
||||
* specifying shell args in [command-line format](https://msdn.microsoft.com/en-au/08dfcab2-eb6e-49a4-80eb-87d4076c98c6).
|
||||
*/
|
||||
shellArgs?: string[];
|
||||
shellArgs?: string[] | string;
|
||||
|
||||
/**
|
||||
* A path or Uri for the current working directory to be used for the terminal.
|
||||
@@ -8094,6 +8137,19 @@ declare module 'vscode' {
|
||||
*/
|
||||
export function registerFoldingRangeProvider(selector: DocumentSelector, provider: FoldingRangeProvider): Disposable;
|
||||
|
||||
/**
|
||||
* Register a selection range provider.
|
||||
*
|
||||
* Multiple providers can be registered for a language. In that case providers are asked in
|
||||
* parallel and the results are merged. A failing provider (rejected promise or exception) will
|
||||
* not cause a failure of the whole operation.
|
||||
*
|
||||
* @param selector A selector that defines the documents this provider is applicable to.
|
||||
* @param provider A selection range provider.
|
||||
* @return A [disposable](#Disposable) that unregisters this provider when being disposed.
|
||||
*/
|
||||
export function registerSelectionRangeProvider(selector: DocumentSelector, provider: SelectionRangeProvider): Disposable;
|
||||
|
||||
/**
|
||||
* Set a [language configuration](#LanguageConfiguration) for a language.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user