Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/platform/dialog/common/dialogService.ts
13401 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import type { CancellationToken, OpenDialogOptions, QuickPickItem, QuickPickOptions, Uri } from 'vscode';
7
import { createServiceIdentifier } from '../../../util/common/services';
8
9
export const IDialogService = createServiceIdentifier<IDialogService>('IDialogService');
10
export interface IDialogService {
11
readonly _serviceBrand: undefined;
12
13
showQuickPick<T extends QuickPickItem>(items: readonly T[] | Thenable<readonly T[]>, options: QuickPickOptions, token?: CancellationToken): Thenable<T | undefined>;
14
showOpenDialog(options: OpenDialogOptions): Thenable<Uri[] | undefined>;
15
}
16
17