mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
use a different value for Separator and make API check more strict
This commit is contained in:
@@ -599,7 +599,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
},
|
||||
showQuickPick(items: any, options?: vscode.QuickPickOptions, token?: vscode.CancellationToken): any {
|
||||
// TODO: remove this once quickPickSeparators has been finalized.
|
||||
if (Array.isArray(items) && items.some((item) => item.kind !== undefined)) {
|
||||
if (Array.isArray(items) && items.some((item) => item.kind === extHostTypes.QuickPickItemKind.Separator)) {
|
||||
checkProposedApiEnabled(extension, 'quickPickSeparators');
|
||||
}
|
||||
return extHostQuickOpen.showQuickPick(items, options, token);
|
||||
|
||||
@@ -2929,8 +2929,8 @@ export class QuickInputButtons {
|
||||
}
|
||||
|
||||
export enum QuickPickItemKind {
|
||||
Separator = -1,
|
||||
Default = 1,
|
||||
Separator = 2,
|
||||
}
|
||||
|
||||
export enum ExtensionKind {
|
||||
|
||||
Reference in New Issue
Block a user