@opensumi/sumi 2.12.1-next-079c1930 → 2.13.3
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/manifest.json +114 -106
- package/package.json +4 -3
- package/sumi-browser.d.ts +131 -25
- package/sumi-worker/sumi-worker.d.ts +186 -206
- package/sumi-worker/worker.command.d.ts +18 -14
- package/sumi-worker/worker.comments.d.ts +1 -1
- package/sumi-worker/worker.doc.d.ts +6 -9
- package/sumi-worker/worker.editor.d.ts +5 -16
- package/sumi-worker/worker.extensions.d.ts +0 -1
- package/sumi-worker/worker.language.d.ts +222 -138
- package/sumi-worker/worker.window.d.ts +185 -180
- package/sumi.d.ts +112 -108
- package/vscode/typings/vscode.d.ts +21 -33
- package/vscode/typings/vscode.debug.d.ts +35 -22
- package/vscode/typings/vscode.env.d.ts +13 -2
- package/vscode/typings/vscode.tasks.d.ts +11 -0
- package/vscode/typings/vscode.tests.d.ts +899 -0
- package/vscode/typings-pending/vscode.d.ts +2 -4
- package/vscode/typings-pending/vscode.proposed.d.ts +1 -3
- package/vscode.d.ts +1 -0
|
@@ -68,19 +68,23 @@ declare module 'sumi-worker' {
|
|
|
68
68
|
*/
|
|
69
69
|
export function getCommands(filterInternal?: boolean): Thenable<string[]>;
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
export function registerTextEditorCommand(
|
|
71
|
+
* Registers a text editor command that can be invoked via a keyboard shortcut,
|
|
72
|
+
* a menu item, an action, or directly.
|
|
73
|
+
*
|
|
74
|
+
* Text editor commands are different from ordinary [commands](#commands.registerCommand) as
|
|
75
|
+
* they only execute when there is an active editor when the command is called. Also, the
|
|
76
|
+
* command handler of an editor command has access to the active editor and to an
|
|
77
|
+
* [edit](#TextEditorEdit)-builder.
|
|
78
|
+
*
|
|
79
|
+
* @param command A unique identifier for the command.
|
|
80
|
+
* @param callback A command handler function with access to an [editor](#TextEditor) and an [edit](#TextEditorEdit).
|
|
81
|
+
* @param thisArg The `this` context used when invoking the handler function.
|
|
82
|
+
* @return Disposable which unregisters this command on disposal.
|
|
83
|
+
*/
|
|
84
|
+
export function registerTextEditorCommand(
|
|
85
|
+
command: string,
|
|
86
|
+
callback: (textEditor: TextEditor, edit: TextEditorEdit, ...args: any[]) => void,
|
|
87
|
+
thisArg?: any,
|
|
88
|
+
): Disposable;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
@@ -4,7 +4,6 @@ declare module 'sumi-worker' {
|
|
|
4
4
|
* [lines](#TextLine) and knowledge about an underlying resource like a file.
|
|
5
5
|
*/
|
|
6
6
|
export interface TextDocument {
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* The associated uri for this document.
|
|
10
9
|
*
|
|
@@ -183,7 +182,7 @@ declare module 'sumi-worker' {
|
|
|
183
182
|
* @param options Options to control how the document will be created.
|
|
184
183
|
* @return A promise that resolves to a [document](#TextDocument).
|
|
185
184
|
*/
|
|
186
|
-
export function openTextDocument(options?: { language?: string; content?: string
|
|
185
|
+
export function openTextDocument(options?: { language?: string; content?: string }): Thenable<TextDocument>;
|
|
187
186
|
|
|
188
187
|
/**
|
|
189
188
|
* An event that is emitted when a [text document](#TextDocument) is opened or when the language id
|
|
@@ -251,8 +250,10 @@ declare module 'sumi-worker' {
|
|
|
251
250
|
* @param provider A content provider.
|
|
252
251
|
* @return A [disposable](#Disposable) that unregisters this provider when being disposed.
|
|
253
252
|
*/
|
|
254
|
-
export function registerTextDocumentContentProvider(
|
|
255
|
-
|
|
253
|
+
export function registerTextDocumentContentProvider(
|
|
254
|
+
scheme: string,
|
|
255
|
+
provider: TextDocumentContentProvider,
|
|
256
|
+
): Disposable;
|
|
256
257
|
}
|
|
257
258
|
|
|
258
259
|
/**
|
|
@@ -265,7 +266,6 @@ declare module 'sumi-worker' {
|
|
|
265
266
|
* asked.
|
|
266
267
|
*/
|
|
267
268
|
export interface TextDocumentContentProvider {
|
|
268
|
-
|
|
269
269
|
/**
|
|
270
270
|
* An event to signal a resource has changed.
|
|
271
271
|
*/
|
|
@@ -318,7 +318,6 @@ declare module 'sumi-worker' {
|
|
|
318
318
|
* that resolves to an array of [text edits](#TextEdit).
|
|
319
319
|
*/
|
|
320
320
|
export interface TextDocumentWillSaveEvent {
|
|
321
|
-
|
|
322
321
|
/**
|
|
323
322
|
* The document that will be saved.
|
|
324
323
|
*/
|
|
@@ -349,8 +348,6 @@ declare module 'sumi-worker' {
|
|
|
349
348
|
*
|
|
350
349
|
* @param thenable A thenable that resolves to [pre-save-edits](#TextEdit).
|
|
351
350
|
*/
|
|
352
|
-
waitUntil(thenable: Thenable<TextEdit[]> |
|
|
353
|
-
|
|
351
|
+
waitUntil(thenable: Thenable<TextEdit[]> | Thenable<any>): void;
|
|
354
352
|
}
|
|
355
|
-
|
|
356
353
|
}
|
|
@@ -270,8 +270,7 @@ declare module 'sumi-worker' {
|
|
|
270
270
|
/**
|
|
271
271
|
* Represents rendering styles for a [text editor decoration](#TextEditorDecorationType).
|
|
272
272
|
*/
|
|
273
|
-
export interface DecorationRenderOptions
|
|
274
|
-
extends ThemableDecorationRenderOptions {
|
|
273
|
+
export interface DecorationRenderOptions extends ThemableDecorationRenderOptions {
|
|
275
274
|
/**
|
|
276
275
|
* Should the decoration be rendered also on the whitespace after the line text.
|
|
277
276
|
* Defaults to `false`.
|
|
@@ -333,8 +332,7 @@ declare module 'sumi-worker' {
|
|
|
333
332
|
after?: ThemableDecorationAttachmentRenderOptions;
|
|
334
333
|
}
|
|
335
334
|
|
|
336
|
-
export interface DecorationInstanceRenderOptions
|
|
337
|
-
extends ThemableDecorationInstanceRenderOptions {
|
|
335
|
+
export interface DecorationInstanceRenderOptions extends ThemableDecorationInstanceRenderOptions {
|
|
338
336
|
/**
|
|
339
337
|
* Overwrite options for light themes.
|
|
340
338
|
*/
|
|
@@ -412,11 +410,7 @@ declare module 'sumi-worker' {
|
|
|
412
410
|
*/
|
|
413
411
|
insertSnippet(
|
|
414
412
|
snippet: SnippetString,
|
|
415
|
-
location?:
|
|
416
|
-
| Position
|
|
417
|
-
| Range
|
|
418
|
-
| ReadonlyArray<Position>
|
|
419
|
-
| ReadonlyArray<Range>,
|
|
413
|
+
location?: Position | Range | ReadonlyArray<Position> | ReadonlyArray<Range>,
|
|
420
414
|
options?: { undoStopBefore: boolean; undoStopAfter: boolean },
|
|
421
415
|
): Thenable<boolean>;
|
|
422
416
|
|
|
@@ -429,10 +423,7 @@ declare module 'sumi-worker' {
|
|
|
429
423
|
* @param decorationType A decoration type.
|
|
430
424
|
* @param rangesOrOptions Either [ranges](#Range) or more detailed [options](#DecorationOptions).
|
|
431
425
|
*/
|
|
432
|
-
setDecorations(
|
|
433
|
-
decorationType: TextEditorDecorationType,
|
|
434
|
-
rangesOrOptions: Range[] | DecorationOptions[],
|
|
435
|
-
): void;
|
|
426
|
+
setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: Range[] | DecorationOptions[]): void;
|
|
436
427
|
|
|
437
428
|
/**
|
|
438
429
|
* Scroll as indicated by `revealType` in order to reveal the given range.
|
|
@@ -656,9 +647,7 @@ declare module 'sumi-worker' {
|
|
|
656
647
|
* @param options Rendering options for the decoration type.
|
|
657
648
|
* @return A new decoration type instance.
|
|
658
649
|
*/
|
|
659
|
-
export function createTextEditorDecorationType(
|
|
660
|
-
options: DecorationRenderOptions,
|
|
661
|
-
): TextEditorDecorationType;
|
|
650
|
+
export function createTextEditorDecorationType(options: DecorationRenderOptions): TextEditorDecorationType;
|
|
662
651
|
}
|
|
663
652
|
|
|
664
653
|
export class TextEdit {
|