mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
QuickPickItem.alwaysShow (#59232)
This commit is contained in:
@@ -79,7 +79,7 @@ export class ExtHostQuickOpen implements ExtHostQuickOpenShape {
|
||||
detail = item.detail;
|
||||
picked = item.picked;
|
||||
if (enableProposedApi) {
|
||||
alwaysShow = item.shouldAlwaysShow;
|
||||
alwaysShow = item.alwaysShow;
|
||||
}
|
||||
}
|
||||
pickItems.push({
|
||||
@@ -168,8 +168,8 @@ export class ExtHostQuickOpen implements ExtHostQuickOpenShape {
|
||||
|
||||
// ---- QuickInput
|
||||
|
||||
createQuickPick<T extends QuickPickItem>(extensionId: string): QuickPick<T> {
|
||||
const session = new ExtHostQuickPick(this._proxy, extensionId, () => this._sessions.delete(session._id));
|
||||
createQuickPick<T extends QuickPickItem>(extensionId: string, enableProposedApi: boolean): QuickPick<T> {
|
||||
const session = new ExtHostQuickPick(this._proxy, extensionId, enableProposedApi, () => this._sessions.delete(session._id));
|
||||
this._sessions.set(session._id, session);
|
||||
return session;
|
||||
}
|
||||
@@ -473,7 +473,7 @@ class ExtHostQuickPick<T extends QuickPickItem> extends ExtHostQuickInput implem
|
||||
private _selectedItems: T[] = [];
|
||||
private _onDidChangeSelectionEmitter = new Emitter<T[]>();
|
||||
|
||||
constructor(proxy: MainThreadQuickOpenShape, extensionId: string, onDispose: () => void) {
|
||||
constructor(proxy: MainThreadQuickOpenShape, extensionId: string, private _enableProposedApi: boolean, onDispose: () => void) {
|
||||
super(proxy, extensionId, onDispose);
|
||||
this._disposables.push(
|
||||
this._onDidChangeActiveEmitter,
|
||||
@@ -500,7 +500,8 @@ class ExtHostQuickPick<T extends QuickPickItem> extends ExtHostQuickInput implem
|
||||
description: item.description,
|
||||
handle: i,
|
||||
detail: item.detail,
|
||||
picked: item.picked
|
||||
picked: item.picked,
|
||||
alwaysShow: this._enableProposedApi ? item.alwaysShow : undefined
|
||||
}))
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user