Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vscode-dts/vscode.proposed.chatStatusItem.d.ts
3290 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
declare module 'vscode' {
7
8
export interface ChatStatusItem {
9
/**
10
* The identifier of this item.
11
*/
12
readonly id: string;
13
14
/**
15
* The main name of the entry, like 'Indexing Status'
16
*/
17
title: string | { label: string; link: string };
18
19
/**
20
* Optional additional description of the entry.
21
*
22
* This is rendered after the title. Supports Markdown style links (`[text](http://example.com)`) and rendering of
23
* {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
24
*/
25
description: string;
26
27
/**
28
* Optional additional details of the entry.
29
*
30
* This is rendered less prominently after the title. Supports Markdown style links (`[text](http://example.com)`) and rendering of
31
* {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
32
*/
33
detail: string | undefined;
34
35
/**
36
* Shows the entry in the chat status.
37
*/
38
show(): void;
39
40
/**
41
* Hide the entry in the chat status.
42
*/
43
hide(): void;
44
45
/**
46
* Dispose and free associated resources
47
*/
48
dispose(): void;
49
}
50
51
namespace window {
52
/**
53
* Create a new chat status item.
54
*
55
* @param id The unique identifier of the status bar item.
56
*
57
* @returns A new chat status item.
58
*/
59
export function createChatStatusItem(id: string): ChatStatusItem;
60
}
61
}
62
63