sussudio
Version:
An unofficial VS Code Internal API
14 lines (13 loc) • 1.04 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IQuickPick, IQuickPickItem } from "../common/quickInput.mjs";
import { IStorageService } from "../../storage/common/storage.mjs";
/**
* Initially, adds pin buttons to all @param quickPick items.
* When pinned, a copy of the item will be moved to the end of the pinned list and any duplicate within the pinned list will
* be removed if @param filterDupliates has been provided. Pin and pinned button events trigger updates to the underlying storage.
* Shows the quickpick once formatted.
*/
export declare function showWithPinnedItems(storageService: IStorageService, storageKey: string, quickPick: IQuickPick<IQuickPickItem>, filterDuplicates?: boolean): Promise<void>;