Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/contrib/inlineCompletions/browser/model/InlineSuggestAlternativeAction.ts
4798 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
import { ThemeIcon } from '../../../../../base/common/themables.js';
6
import { Command } from '../../../../common/languages.js';
7
8
export type InlineSuggestAlternativeAction = {
9
label: string;
10
icon: ThemeIcon;
11
command: Command;
12
count: Promise<number>;
13
};
14
15
export namespace InlineSuggestAlternativeAction {
16
export function toString(action: InlineSuggestAlternativeAction | undefined): string | undefined {
17
return action?.command.id ?? undefined;
18
}
19
}
20
21