提交 cdec9a9f 编写于 作者: B Benjamin Pasero

quick input - set placeholder as aria label

上级 917c4203
......@@ -506,8 +506,8 @@ function doScoreItemFuzzySingle(label: string, description: string | undefined,
return NO_ITEM_SCORE;
}
function createMatches(offsets: undefined | number[]): IMatch[] {
let ret: IMatch[] = [];
function createMatches(offsets: number[] | undefined): IMatch[] {
const ret: IMatch[] = [];
if (!offsets) {
return ret;
}
......
......@@ -1362,6 +1362,9 @@ export class QuickInputController extends Disposable {
];
input.canSelectMany = !!options.canPickMany;
input.placeholder = options.placeHolder;
if (options.placeHolder) {
input.ariaLabel = options.placeHolder;
}
input.ignoreFocusOut = !!options.ignoreFocusLost;
input.matchOnDescription = !!options.matchOnDescription;
input.matchOnDetail = !!options.matchOnDetail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册