@opensumi/sumi 2.12.1-next-079c1930
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/build.ts +18 -0
- package/index.d.ts +5 -0
- package/manifest.json +414 -0
- package/package.json +18 -0
- package/sumi-browser.d.ts +273 -0
- package/sumi-worker/sumi-worker.d.ts +2788 -0
- package/sumi-worker/worker.command.d.ts +86 -0
- package/sumi-worker/worker.comments.d.ts +273 -0
- package/sumi-worker/worker.doc.d.ts +356 -0
- package/sumi-worker/worker.editor.d.ts +725 -0
- package/sumi-worker/worker.extensions.d.ts +63 -0
- package/sumi-worker/worker.language.d.ts +2220 -0
- package/sumi-worker/worker.window.d.ts +318 -0
- package/sumi-worker.d.ts +7 -0
- package/sumi.d.ts +822 -0
- package/vscode/typings/vscode.authentication.d.ts +231 -0
- package/vscode/typings/vscode.command.d.ts +86 -0
- package/vscode/typings/vscode.comments.d.ts +292 -0
- package/vscode/typings/vscode.d.ts +3789 -0
- package/vscode/typings/vscode.debug.d.ts +684 -0
- package/vscode/typings/vscode.doc.d.ts +272 -0
- package/vscode/typings/vscode.editor.d.ts +1017 -0
- package/vscode/typings/vscode.env.d.ts +153 -0
- package/vscode/typings/vscode.extension.d.ts +67 -0
- package/vscode/typings/vscode.language.d.ts +2630 -0
- package/vscode/typings/vscode.message.d.ts +195 -0
- package/vscode/typings/vscode.proposed.d.ts +662 -0
- package/vscode/typings/vscode.quickpick.d.ts +491 -0
- package/vscode/typings/vscode.scm.d.ts +254 -0
- package/vscode/typings/vscode.tasks.d.ts +676 -0
- package/vscode/typings/vscode.theme.d.ts +370 -0
- package/vscode/typings/vscode.window.d.ts +870 -0
- package/vscode/typings/vscode.workspace.d.ts +664 -0
- package/vscode/typings-pending/vscode.d.ts +27 -0
- package/vscode/typings-pending/vscode.proposed.d.ts +3 -0
- package/vscode.d.ts +23 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* API OWENR: 蛋总
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Namespace for dealing with the current window of the editor. That is visible
|
|
10
|
+
* and active editors, as well as, UI elements to show messages, selections, and
|
|
11
|
+
* asking for user input.
|
|
12
|
+
*/
|
|
13
|
+
export namespace window {
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Show an information message to users. Optionally provide an array of items which will be presented as
|
|
18
|
+
* clickable buttons.
|
|
19
|
+
*
|
|
20
|
+
* @param message The message to show.
|
|
21
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
22
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
23
|
+
*/
|
|
24
|
+
export function showInformationMessage(message: string, ...items: string[]): Thenable<string | undefined>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Show an information message to users. Optionally provide an array of items which will be presented as
|
|
28
|
+
* clickable buttons.
|
|
29
|
+
*
|
|
30
|
+
* @param message The message to show.
|
|
31
|
+
* @param options Configures the behaviour of the message.
|
|
32
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
33
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
34
|
+
*/
|
|
35
|
+
export function showInformationMessage(message: string, options: MessageOptions, ...items: string[]): Thenable<string | undefined>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Show an information message.
|
|
39
|
+
*
|
|
40
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
41
|
+
*
|
|
42
|
+
* @param message The message to show.
|
|
43
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
44
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
45
|
+
*/
|
|
46
|
+
export function showInformationMessage<T extends MessageItem>(message: string, ...items: T[]): Thenable<T | undefined>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Show an information message.
|
|
50
|
+
*
|
|
51
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
52
|
+
*
|
|
53
|
+
* @param message The message to show.
|
|
54
|
+
* @param options Configures the behaviour of the message.
|
|
55
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
56
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
57
|
+
*/
|
|
58
|
+
export function showInformationMessage<T extends MessageItem>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Show a warning message.
|
|
62
|
+
*
|
|
63
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
64
|
+
*
|
|
65
|
+
* @param message The message to show.
|
|
66
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
67
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
68
|
+
*/
|
|
69
|
+
export function showWarningMessage(message: string, ...items: string[]): Thenable<string | undefined>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Show a warning message.
|
|
73
|
+
*
|
|
74
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
75
|
+
*
|
|
76
|
+
* @param message The message to show.
|
|
77
|
+
* @param options Configures the behaviour of the message.
|
|
78
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
79
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
80
|
+
*/
|
|
81
|
+
export function showWarningMessage(message: string, options: MessageOptions, ...items: string[]): Thenable<string | undefined>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Show a warning message.
|
|
85
|
+
*
|
|
86
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
87
|
+
*
|
|
88
|
+
* @param message The message to show.
|
|
89
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
90
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
91
|
+
*/
|
|
92
|
+
export function showWarningMessage<T extends MessageItem>(message: string, ...items: T[]): Thenable<T | undefined>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Show a warning message.
|
|
96
|
+
*
|
|
97
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
98
|
+
*
|
|
99
|
+
* @param message The message to show.
|
|
100
|
+
* @param options Configures the behaviour of the message.
|
|
101
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
102
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
103
|
+
*/
|
|
104
|
+
export function showWarningMessage<T extends MessageItem>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Show an error message.
|
|
108
|
+
*
|
|
109
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
110
|
+
*
|
|
111
|
+
* @param message The message to show.
|
|
112
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
113
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
114
|
+
*/
|
|
115
|
+
export function showErrorMessage(message: string, ...items: string[]): Thenable<string | undefined>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Show an error message.
|
|
119
|
+
*
|
|
120
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
121
|
+
*
|
|
122
|
+
* @param message The message to show.
|
|
123
|
+
* @param options Configures the behaviour of the message.
|
|
124
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
125
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
126
|
+
*/
|
|
127
|
+
export function showErrorMessage(message: string, options: MessageOptions, ...items: string[]): Thenable<string | undefined>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Show an error message.
|
|
131
|
+
*
|
|
132
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
133
|
+
*
|
|
134
|
+
* @param message The message to show.
|
|
135
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
136
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
137
|
+
*/
|
|
138
|
+
export function showErrorMessage<T extends MessageItem>(message: string, ...items: T[]): Thenable<T | undefined>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Show an error message.
|
|
142
|
+
*
|
|
143
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
144
|
+
*
|
|
145
|
+
* @param message The message to show.
|
|
146
|
+
* @param options Configures the behaviour of the message.
|
|
147
|
+
* @param items A set of items that will be rendered as actions in the message.
|
|
148
|
+
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
|
|
149
|
+
*/
|
|
150
|
+
export function showErrorMessage<T extends MessageItem>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>;
|
|
151
|
+
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Represents an action that is shown with an information, warning, or
|
|
156
|
+
* error message.
|
|
157
|
+
*
|
|
158
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
159
|
+
* @see [showWarningMessage](#window.showWarningMessage)
|
|
160
|
+
* @see [showErrorMessage](#window.showErrorMessage)
|
|
161
|
+
*/
|
|
162
|
+
export interface MessageItem {
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* A short title like 'Retry', 'Open Log' etc.
|
|
166
|
+
*/
|
|
167
|
+
title: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A hint for modal dialogs that the item should be triggered
|
|
171
|
+
* when the user cancels the dialog (e.g. by pressing the ESC
|
|
172
|
+
* key).
|
|
173
|
+
*
|
|
174
|
+
* Note: this option is ignored for non-modal messages.
|
|
175
|
+
*/
|
|
176
|
+
isCloseAffordance?: boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Options to configure the behavior of the message.
|
|
181
|
+
*
|
|
182
|
+
* @see [showInformationMessage](#window.showInformationMessage)
|
|
183
|
+
* @see [showWarningMessage](#window.showWarningMessage)
|
|
184
|
+
* @see [showErrorMessage](#window.showErrorMessage)
|
|
185
|
+
*/
|
|
186
|
+
export interface MessageOptions {
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Indicates that this message should be modal.
|
|
190
|
+
*/
|
|
191
|
+
modal?: boolean;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
}
|
|
195
|
+
|