@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.
Files changed (37) hide show
  1. package/README.md +1 -0
  2. package/build.ts +18 -0
  3. package/index.d.ts +5 -0
  4. package/manifest.json +414 -0
  5. package/package.json +18 -0
  6. package/sumi-browser.d.ts +273 -0
  7. package/sumi-worker/sumi-worker.d.ts +2788 -0
  8. package/sumi-worker/worker.command.d.ts +86 -0
  9. package/sumi-worker/worker.comments.d.ts +273 -0
  10. package/sumi-worker/worker.doc.d.ts +356 -0
  11. package/sumi-worker/worker.editor.d.ts +725 -0
  12. package/sumi-worker/worker.extensions.d.ts +63 -0
  13. package/sumi-worker/worker.language.d.ts +2220 -0
  14. package/sumi-worker/worker.window.d.ts +318 -0
  15. package/sumi-worker.d.ts +7 -0
  16. package/sumi.d.ts +822 -0
  17. package/vscode/typings/vscode.authentication.d.ts +231 -0
  18. package/vscode/typings/vscode.command.d.ts +86 -0
  19. package/vscode/typings/vscode.comments.d.ts +292 -0
  20. package/vscode/typings/vscode.d.ts +3789 -0
  21. package/vscode/typings/vscode.debug.d.ts +684 -0
  22. package/vscode/typings/vscode.doc.d.ts +272 -0
  23. package/vscode/typings/vscode.editor.d.ts +1017 -0
  24. package/vscode/typings/vscode.env.d.ts +153 -0
  25. package/vscode/typings/vscode.extension.d.ts +67 -0
  26. package/vscode/typings/vscode.language.d.ts +2630 -0
  27. package/vscode/typings/vscode.message.d.ts +195 -0
  28. package/vscode/typings/vscode.proposed.d.ts +662 -0
  29. package/vscode/typings/vscode.quickpick.d.ts +491 -0
  30. package/vscode/typings/vscode.scm.d.ts +254 -0
  31. package/vscode/typings/vscode.tasks.d.ts +676 -0
  32. package/vscode/typings/vscode.theme.d.ts +370 -0
  33. package/vscode/typings/vscode.window.d.ts +870 -0
  34. package/vscode/typings/vscode.workspace.d.ts +664 -0
  35. package/vscode/typings-pending/vscode.d.ts +27 -0
  36. package/vscode/typings-pending/vscode.proposed.d.ts +3 -0
  37. package/vscode.d.ts +23 -0
@@ -0,0 +1,370 @@
1
+ declare module 'vscode' {
2
+
3
+ /**
4
+ * A reference to one of the workbench colors as defined in https://code.visualstudio.com/docs/getstarted/theme-color-reference.
5
+ * Using a theme color is preferred over a custom color as it gives theme authors and users the possibility to change the color.
6
+ */
7
+ export class ThemeColor {
8
+
9
+ /**
10
+ * Creates a reference to a theme color.
11
+ * @param id of the color. The available colors are listed in https://code.visualstudio.com/docs/getstarted/theme-color-reference.
12
+ */
13
+ constructor(id: string);
14
+ }
15
+
16
+ /**
17
+ * A reference to a named icon. Currently, [File](#ThemeIcon.File), [Folder](#ThemeIcon.Folder),
18
+ * and [ThemeIcon ids](https://code.visualstudio.com/api/references/icons-in-labels#icon-listing) are supported.
19
+ * Using a theme icon is preferred over a custom icon as it gives product theme authors the possibility to change the icons.
20
+ *
21
+ * *Note* that theme icons can also be rendered inside labels and descriptions. Places that support theme icons spell this out
22
+ * and they use the `$(<name>)`-syntax, for instance `quickPick.label = "Hello World $(globe)"`.
23
+ */
24
+ export class ThemeIcon {
25
+ /**
26
+ * Reference to an icon representing a file. The icon is taken from the current file icon theme or a placeholder icon is used.
27
+ */
28
+ static readonly File: ThemeIcon;
29
+
30
+ /**
31
+ * Reference to an icon representing a folder. The icon is taken from the current file icon theme or a placeholder icon is used.
32
+ */
33
+ static readonly Folder: ThemeIcon;
34
+
35
+ /**
36
+ * The id of the icon. The available icons are listed in https://code.visualstudio.com/api/references/icons-in-labels#icon-listing.
37
+ */
38
+ readonly id: string;
39
+
40
+ /**
41
+ * The optional ThemeColor of the icon. The color is currently only used in [TreeItem](#TreeItem).
42
+ */
43
+ readonly color?: ThemeColor;
44
+
45
+ /**
46
+ * Creates a reference to a theme icon.
47
+ * @param id id of the icon. The avaiable icons are listed in https://microsoft.github.io/vscode-codicons/dist/codicon.html.
48
+ */
49
+ constructor(id: string);
50
+
51
+ /**
52
+ * Creates a reference to a theme icon.
53
+ * @param id id of the icon. The available icons are listed in https://code.visualstudio.com/api/references/icons-in-labels#icon-listing.
54
+ * @param color optional `ThemeColor` for the icon. The color is currently only used in [TreeItem](#TreeItem).
55
+ */
56
+ constructor(id: string, color?: ThemeColor);
57
+ }
58
+
59
+ /**
60
+ * Represents theme specific rendering styles for a [text editor decoration](#TextEditorDecorationType).
61
+ */
62
+ export interface ThemableDecorationRenderOptions {
63
+ /**
64
+ * Background color of the decoration. Use rgba() and define transparent background colors to play well with other decorations.
65
+ * Alternatively a color from the color registry can be [referenced](#ThemeColor).
66
+ */
67
+ backgroundColor?: string | ThemeColor;
68
+
69
+ /**
70
+ * CSS styling property that will be applied to text enclosed by a decoration.
71
+ */
72
+ outline?: string;
73
+
74
+ /**
75
+ * CSS styling property that will be applied to text enclosed by a decoration.
76
+ * Better use 'outline' for setting one or more of the individual outline properties.
77
+ */
78
+ outlineColor?: string | ThemeColor;
79
+
80
+ /**
81
+ * CSS styling property that will be applied to text enclosed by a decoration.
82
+ * Better use 'outline' for setting one or more of the individual outline properties.
83
+ */
84
+ outlineStyle?: string;
85
+
86
+ /**
87
+ * CSS styling property that will be applied to text enclosed by a decoration.
88
+ * Better use 'outline' for setting one or more of the individual outline properties.
89
+ */
90
+ outlineWidth?: string;
91
+
92
+ /**
93
+ * CSS styling property that will be applied to text enclosed by a decoration.
94
+ */
95
+ border?: string;
96
+
97
+ /**
98
+ * CSS styling property that will be applied to text enclosed by a decoration.
99
+ * Better use 'border' for setting one or more of the individual border properties.
100
+ */
101
+ borderColor?: string | ThemeColor;
102
+
103
+ /**
104
+ * CSS styling property that will be applied to text enclosed by a decoration.
105
+ * Better use 'border' for setting one or more of the individual border properties.
106
+ */
107
+ borderRadius?: string;
108
+
109
+ /**
110
+ * CSS styling property that will be applied to text enclosed by a decoration.
111
+ * Better use 'border' for setting one or more of the individual border properties.
112
+ */
113
+ borderSpacing?: string;
114
+
115
+ /**
116
+ * CSS styling property that will be applied to text enclosed by a decoration.
117
+ * Better use 'border' for setting one or more of the individual border properties.
118
+ */
119
+ borderStyle?: string;
120
+
121
+ /**
122
+ * CSS styling property that will be applied to text enclosed by a decoration.
123
+ * Better use 'border' for setting one or more of the individual border properties.
124
+ */
125
+ borderWidth?: string;
126
+
127
+ /**
128
+ * CSS styling property that will be applied to text enclosed by a decoration.
129
+ */
130
+ fontStyle?: string;
131
+
132
+ /**
133
+ * CSS styling property that will be applied to text enclosed by a decoration.
134
+ */
135
+ fontWeight?: string;
136
+
137
+ /**
138
+ * CSS styling property that will be applied to text enclosed by a decoration.
139
+ */
140
+ textDecoration?: string;
141
+
142
+ /**
143
+ * CSS styling property that will be applied to text enclosed by a decoration.
144
+ */
145
+ cursor?: string;
146
+
147
+ /**
148
+ * CSS styling property that will be applied to text enclosed by a decoration.
149
+ */
150
+ color?: string | ThemeColor;
151
+
152
+ /**
153
+ * CSS styling property that will be applied to text enclosed by a decoration.
154
+ */
155
+ opacity?: string;
156
+
157
+ /**
158
+ * CSS styling property that will be applied to text enclosed by a decoration.
159
+ */
160
+ letterSpacing?: string;
161
+
162
+ /**
163
+ * An **absolute path** or an URI to an image to be rendered in the gutter.
164
+ */
165
+ gutterIconPath?: string | Uri;
166
+
167
+ /**
168
+ * Specifies the size of the gutter icon.
169
+ * Available values are 'auto', 'contain', 'cover' and any percentage value.
170
+ * For further information: https://msdn.microsoft.com/en-us/library/jj127316(v=vs.85).aspx
171
+ */
172
+ gutterIconSize?: string;
173
+
174
+ /**
175
+ * The color of the decoration in the overview ruler. Use rgba() and define transparent colors to play well with other decorations.
176
+ */
177
+ overviewRulerColor?: string | ThemeColor;
178
+
179
+ /**
180
+ * Defines the rendering options of the attachment that is inserted before the decorated text.
181
+ */
182
+ before?: ThemableDecorationAttachmentRenderOptions;
183
+
184
+ /**
185
+ * Defines the rendering options of the attachment that is inserted after the decorated text.
186
+ */
187
+ after?: ThemableDecorationAttachmentRenderOptions;
188
+ }
189
+
190
+ export interface ThemableDecorationAttachmentRenderOptions {
191
+ /**
192
+ * Defines a text content that is shown in the attachment. Either an icon or a text can be shown, but not both.
193
+ */
194
+ contentText?: string;
195
+ /**
196
+ * An **absolute path** or an URI to an image to be rendered in the attachment. Either an icon
197
+ * or a text can be shown, but not both.
198
+ */
199
+ contentIconPath?: string | Uri;
200
+ /**
201
+ * CSS styling property that will be applied to the decoration attachment.
202
+ */
203
+ border?: string;
204
+ /**
205
+ * CSS styling property that will be applied to text enclosed by a decoration.
206
+ */
207
+ borderColor?: string | ThemeColor;
208
+ /**
209
+ * CSS styling property that will be applied to the decoration attachment.
210
+ */
211
+ fontStyle?: string;
212
+ /**
213
+ * CSS styling property that will be applied to the decoration attachment.
214
+ */
215
+ fontWeight?: string;
216
+ /**
217
+ * CSS styling property that will be applied to the decoration attachment.
218
+ */
219
+ textDecoration?: string;
220
+ /**
221
+ * CSS styling property that will be applied to the decoration attachment.
222
+ */
223
+ color?: string | ThemeColor;
224
+ /**
225
+ * CSS styling property that will be applied to the decoration attachment.
226
+ */
227
+ backgroundColor?: string | ThemeColor;
228
+ /**
229
+ * CSS styling property that will be applied to the decoration attachment.
230
+ */
231
+ margin?: string;
232
+ /**
233
+ * CSS styling property that will be applied to the decoration attachment.
234
+ */
235
+ width?: string;
236
+ /**
237
+ * CSS styling property that will be applied to the decoration attachment.
238
+ */
239
+ height?: string;
240
+ }
241
+
242
+
243
+ /**
244
+ * Represents a color in RGBA space.
245
+ */
246
+ export class Color {
247
+
248
+ /**
249
+ * The red component of this color in the range [0-1].
250
+ */
251
+ readonly red: number;
252
+
253
+ /**
254
+ * The green component of this color in the range [0-1].
255
+ */
256
+ readonly green: number;
257
+
258
+ /**
259
+ * The blue component of this color in the range [0-1].
260
+ */
261
+ readonly blue: number;
262
+
263
+ /**
264
+ * The alpha component of this color in the range [0-1].
265
+ */
266
+ readonly alpha: number;
267
+
268
+ /**
269
+ * Creates a new color instance.
270
+ *
271
+ * @param red The red component.
272
+ * @param green The green component.
273
+ * @param blue The blue component.
274
+ * @param alpha The alpha component.
275
+ */
276
+ constructor(red: number, green: number, blue: number, alpha: number);
277
+ }
278
+
279
+ /**
280
+ * Represents a color range from a document.
281
+ */
282
+ export class ColorInformation {
283
+
284
+ /**
285
+ * The range in the document where this color appears.
286
+ */
287
+ range: Range;
288
+
289
+ /**
290
+ * The actual color value for this color range.
291
+ */
292
+ color: Color;
293
+
294
+ /**
295
+ * Creates a new color range.
296
+ *
297
+ * @param range The range the color appears in. Must not be empty.
298
+ * @param color The value of the color.
299
+ * @param format The format in which this color is currently formatted.
300
+ */
301
+ constructor(range: Range, color: Color);
302
+ }
303
+
304
+ /**
305
+ * A color presentation object describes how a [`color`](#Color) should be represented as text and what
306
+ * edits are required to refer to it from source code.
307
+ *
308
+ * For some languages one color can have multiple presentations, e.g. css can represent the color red with
309
+ * the constant `Red`, the hex-value `#ff0000`, or in rgba and hsla forms. In csharp other representations
310
+ * apply, e.g. `System.Drawing.Color.Red`.
311
+ */
312
+ export class ColorPresentation {
313
+
314
+ /**
315
+ * The label of this color presentation. It will be shown on the color
316
+ * picker header. By default this is also the text that is inserted when selecting
317
+ * this color presentation.
318
+ */
319
+ label: string;
320
+
321
+ /**
322
+ * An [edit](#TextEdit) which is applied to a document when selecting
323
+ * this presentation for the color. When `falsy` the [label](#ColorPresentation.label)
324
+ * is used.
325
+ */
326
+ textEdit?: TextEdit;
327
+
328
+ /**
329
+ * An optional array of additional [text edits](#TextEdit) that are applied when
330
+ * selecting this color presentation. Edits must not overlap with the main [edit](#ColorPresentation.textEdit) nor with themselves.
331
+ */
332
+ additionalTextEdits?: TextEdit[];
333
+
334
+ /**
335
+ * Creates a new color presentation.
336
+ *
337
+ * @param label The label of this color presentation.
338
+ */
339
+ constructor(label: string);
340
+ }
341
+
342
+ /**
343
+ * The document color provider defines the contract between extensions and feature of
344
+ * picking and modifying colors in the editor.
345
+ */
346
+ export interface DocumentColorProvider {
347
+
348
+ /**
349
+ * Provide colors for the given document.
350
+ *
351
+ * @param document The document in which the command was invoked.
352
+ * @param token A cancellation token.
353
+ * @return An array of [color information](#ColorInformation) or a thenable that resolves to such. The lack of a result
354
+ * can be signaled by returning `undefined`, `null`, or an empty array.
355
+ */
356
+ provideDocumentColors(document: TextDocument, token: CancellationToken): ProviderResult<ColorInformation[]>;
357
+
358
+ /**
359
+ * Provide [representations](#ColorPresentation) for a color.
360
+ *
361
+ * @param color The color to show and insert.
362
+ * @param context A context object with additional information
363
+ * @param token A cancellation token.
364
+ * @return An array of color presentations or a thenable that resolves to such. The lack of a result
365
+ * can be signaled by returning `undefined`, `null`, or an empty array.
366
+ */
367
+ provideColorPresentations(color: Color, context: { document: TextDocument, range: Range }, token: CancellationToken): ProviderResult<ColorPresentation[]>;
368
+ }
369
+
370
+ }