expose matchOnDetail in API

This commit is contained in:
Johannes Rieken
2016-01-14 10:51:41 +01:00
parent 0725f63d22
commit bd19642abf
2 changed files with 7 additions and 1 deletions

5
src/vs/vscode.d.ts vendored
View File

@@ -1083,6 +1083,11 @@ declare namespace vscode {
*/
matchOnDescription?: boolean;
/**
* An optional flag to include the detail when filtering the picks.
*/
matchOnDetail?: boolean;
/**
* An optional string to show as place holder in the input box to guide the user what to pick on.
*/

View File

@@ -40,7 +40,8 @@ export class ExtHostQuickOpen {
let quickPickWidget = this._proxy.$show({
autoFocus: { autoFocusFirstEntry: true },
placeHolder: options && options.placeHolder,
matchOnDescription: options && options.matchOnDescription
matchOnDescription: options && options.matchOnDescription,
matchOnDetail: options && options.matchOnDetail
});
return itemsPromise.then(items => {