Skip to content

Commit

Permalink
Change API proposal to have a valueSelection property instead of setV…
Browse files Browse the repository at this point in the history
…alueSelection method
  • Loading branch information
CrafterKolyan committed Nov 8, 2024
1 parent b871b0d commit fb751b3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/vscode-dts/vscode.proposed.valueSelectionInQuickPick.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ declare module 'vscode' {

export interface QuickPick<T extends QuickPickItem> extends QuickInput {
/**
* Sets selection range in the input value. When start equals end only the cursor will be set,
* Selection range in the input value. Defined as tuple of two number where the
* first is the inclusive start index and the second the exclusive end index. When `undefined` the whole
* pre-filled value will be selected, when empty (start equals end) only the cursor will be set,
* otherwise the defined range will be selected.
*
* This property does not get updated when the user types or makes a selection,
* but it can be updated by the extension.
*/
setValueSelection(start: number, end: number): void;
valueSelection: readonly [number, number] | undefined;
}
}

0 comments on commit fb751b3

Please sign in to comment.