提交 0ae913a6 编写于 作者: C Christof Marti

Move `alwaysShow` to stable API (fixes #59232)

上级 29798049
......@@ -1590,6 +1590,11 @@ declare module 'vscode' {
* @see [QuickPickOptions.canPickMany](#QuickPickOptions.canPickMany)
*/
picked?: boolean;
/**
* Always show this item.
*/
alwaysShow?: boolean;
}
/**
......
......@@ -1147,16 +1147,6 @@ declare module 'vscode' {
}
//#endregion
//#region #59232
export interface QuickPickItem {
/**
* Show this item always
*/
alwaysShow?: boolean;
}
//#endregion
//#region Tree Item Label Highlights
/**
* Label describing the [Tree item](#TreeItem)
......
......@@ -79,9 +79,7 @@ export class ExtHostQuickOpen implements ExtHostQuickOpenShape {
description = item.description;
detail = item.detail;
picked = item.picked;
if (enableProposedApi) {
alwaysShow = item.alwaysShow;
}
alwaysShow = item.alwaysShow;
}
pickItems.push({
label,
......@@ -479,7 +477,7 @@ class ExtHostQuickPick<T extends QuickPickItem> extends ExtHostQuickInput implem
private _selectedItems: T[] = [];
private _onDidChangeSelectionEmitter = new Emitter<T[]>();
constructor(proxy: MainThreadQuickOpenShape, extensionId: string, private _enableProposedApi: boolean, onDispose: () => void) {
constructor(proxy: MainThreadQuickOpenShape, extensionId: string, enableProposedApi: boolean, onDispose: () => void) {
super(proxy, extensionId, onDispose);
this._disposables.push(
this._onDidChangeActiveEmitter,
......@@ -507,7 +505,7 @@ class ExtHostQuickPick<T extends QuickPickItem> extends ExtHostQuickInput implem
handle: i,
detail: item.detail,
picked: item.picked,
alwaysShow: this._enableProposedApi ? item.alwaysShow : undefined
alwaysShow: item.alwaysShow
}))
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册