Path: blob/main/extensions/copilot/src/platform/dialog/common/dialogService.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import type { CancellationToken, OpenDialogOptions, QuickPickItem, QuickPickOptions, Uri } from 'vscode';6import { createServiceIdentifier } from '../../../util/common/services';78export const IDialogService = createServiceIdentifier<IDialogService>('IDialogService');9export interface IDialogService {10readonly _serviceBrand: undefined;1112showQuickPick<T extends QuickPickItem>(items: readonly T[] | Thenable<readonly T[]>, options: QuickPickOptions, token?: CancellationToken): Thenable<T | undefined>;13showOpenDialog(options: OpenDialogOptions): Thenable<Uri[] | undefined>;14}151617