提交 7b4dc66b 编写于 作者: P Peter Elmers 提交者: Christof Marti

Move sortByLabel to proposed API

Summary: API additions should start off in the proposed API file.

Test Plan:
same as before, tested that I could skip sorting:
{F168164535}

Reviewers: dalongi, ericblue, hchau

Reviewed By: ericblue

Differential Revision: https://phabricator.intern.facebook.com/D16264910

Signature: 16264910:1563214616:55ecf86a9d4a0d8a0cd44d9b33eb770b2a7d04aa
上级 e9c0aeb8
...@@ -1616,11 +1616,6 @@ declare module 'vscode' { ...@@ -1616,11 +1616,6 @@ declare module 'vscode' {
*/ */
matchOnDetail?: boolean; matchOnDetail?: boolean;
/**
* An optional flag to sort the final results by index of first query match in label, defaults to true.
*/
sortByLabel?: boolean;
/** /**
* An optional string to show as place holder in the input box to guide the user what to pick on. * An optional string to show as place holder in the input box to guide the user what to pick on.
*/ */
...@@ -7858,11 +7853,6 @@ declare module 'vscode' { ...@@ -7858,11 +7853,6 @@ declare module 'vscode' {
*/ */
matchOnDetail: boolean; matchOnDetail: boolean;
/**
* An optional flag to sort the final results by index of first query match in label. Defaults to true.
*/
sortByLabel: boolean;
/** /**
* Active items. This can be read and updated by the extension. * Active items. This can be read and updated by the extension.
*/ */
......
...@@ -1179,4 +1179,21 @@ declare module 'vscode' { ...@@ -1179,4 +1179,21 @@ declare module 'vscode' {
} }
//#endregion //#endregion
//#region pelmers - allow QuickPicks to skip sorting
export interface QuickPick<T extends QuickPickItem> extends QuickInput {
/**
* An optional flag to sort the final results by index of first query match in label. Defaults to true.
*/
sortByLabel: boolean;
}
export interface QuickPickOptions {
/**
* An optional flag to sort the final results by index of first query match in label, defaults to true.
*/
sortByLabel?: boolean;
}
//#endregion
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册