@opensumi/sumi 3.7.2-next-1740448398.0 → 3.7.2-next-1741226843.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/sumi",
3
- "version": "3.7.2-next-1740448398.0",
3
+ "version": "3.7.2-next-1741226843.0",
4
4
  "typings": "index.d.ts",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,11 +12,11 @@
12
12
  "build": "tsx ./build.ts"
13
13
  },
14
14
  "dependencies": {
15
- "@opensumi/ide-components": "3.7.2-next-1740448398.0",
15
+ "@opensumi/ide-components": "3.7.2-next-1741226843.0",
16
16
  "vscode-uri": "3.0.2"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/react": "^18.2.0"
20
20
  },
21
- "gitHead": "cc4e3c8055fb5297e64524cb77250e9b2a11aee8"
21
+ "gitHead": "4abde3a575df8a7ce66b2977604b054f8a512af1"
22
22
  }
@@ -4,11 +4,6 @@ declare module 'vscode' {
4
4
  * Using a theme color is preferred over a custom color as it gives theme authors and users the possibility to change the color.
5
5
  */
6
6
  export class ThemeColor {
7
- /**
8
- * The id of this color.
9
- */
10
- readonly id: string;
11
-
12
7
  /**
13
8
  * Creates a reference to a theme color.
14
9
  * @param id of the color. The available colors are listed in https://code.visualstudio.com/docs/getstarted/theme-color-reference.
package/vscode.d.ts CHANGED
@@ -52,4 +52,3 @@
52
52
  /// <reference path='./vscode/typings/vscode.proposed.terminalDataWriteEvent.d.ts' />
53
53
  /// <reference path='./vscode/typings/vscode.proposed.documentPaste.d.ts' />
54
54
  /// <reference path='./vscode/typings/vscode.proposed.dropMetadata.d.ts' />
55
- /// <reference path='./vscode/typings/vscode.proposed.inlineEdit.d.ts' />
@@ -1,101 +0,0 @@
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
- export class InlineEdit {
8
-
9
-
10
- /**
11
- * The new text for this edit.
12
- */
13
- readonly text: string;
14
-
15
- /**
16
- * A range that will be replaced by the text of the inline edit.
17
- * If the change is only additive, this can be empty (same start and end position).
18
- */
19
- readonly range: Range;
20
-
21
- /**
22
- * A range specifying when the edit can be shown based on the cursor position.
23
- * If the cursor is within this range, the inline edit can be displayed.
24
- */
25
- readonly showRange?: Range;
26
-
27
- /**
28
- * An optional command that will be executed after applying the inline edit.
29
- */
30
- accepted?: Command;
31
-
32
- /**
33
- * An optional command that will be executed after rejecting the inline edit.
34
- */
35
- rejected?: Command;
36
-
37
- shown?: Command;
38
-
39
- commands?: Command[];
40
-
41
- /**
42
- * Creates a new inline edit.
43
- *
44
- * @param text The new text for this edit.
45
- * @param range A range that will be replaced by the text of the inline edit.
46
- */
47
- constructor(text: string, range: Range);
48
- }
49
-
50
- export interface InlineEditContext {
51
- /**
52
- * Describes how the inline edit was triggered.
53
- */
54
- triggerKind: InlineEditTriggerKind;
55
-
56
- readonly requestUuid?: string;
57
- }
58
-
59
- export enum InlineEditTriggerKind {
60
- /**
61
- * Completion was triggered explicitly by a user gesture.
62
- * Return multiple completion items to enable cycling through them.
63
- */
64
- Invoke = 0,
65
-
66
- /**
67
- * Completion was triggered automatically while editing.
68
- * It is sufficient to return a single completion item in this case.
69
- */
70
- Automatic = 1,
71
- }
72
-
73
- export interface InlineEditProvider {
74
-
75
- readonly displayName?: string;
76
-
77
- /**
78
- * Provide inline edit for the given document.
79
- *
80
- * @param document The document for which the inline edit are computed.
81
- * @param context Additional context information about the request.
82
- * @param token A cancellation token.
83
- * @return An inline edit or a thenable that resolves to such. The lack of a result can be
84
- * signaled by returning `undefined` or `null`.
85
- */
86
- provideInlineEdit(document: TextDocument, context: InlineEditContext, token: CancellationToken): ProviderResult<InlineEdit>;
87
- }
88
-
89
- export namespace languages {
90
-
91
- /**
92
- * Register a provider that can handle inline edits.
93
- *
94
- * @param selector A selector that defines the documents this provider is applicable to.
95
- * @param provider A provider that can handle inline edits.
96
- * @return A {@link Disposable} that unregisters this provider when being disposed.
97
- */
98
- export function registerInlineEditProvider(selector: DocumentSelector, provider: InlineEditProvider): Disposable;
99
-
100
- }
101
- }