Move alwaysShow to stable API (fixes #59232)

This commit is contained in:
Christof Marti
2018-10-24 09:18:32 +02:00
parent 2979804957
commit 0ae913a683
3 changed files with 8 additions and 15 deletions

View File

@@ -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
}))
});
}