@opensumi/sumi 3.6.4 → 3.6.5-next-1734949468.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 +3 -3
- package/sumi-worker/worker.editor.d.ts +4 -0
- package/sumi.d.ts +5 -2
- package/vscode/typings/vscode.authentication.d.ts +34 -3
- package/vscode/typings/vscode.comments.d.ts +13 -0
- package/vscode/typings/vscode.d.ts +516 -23
- package/vscode/typings/vscode.debug.d.ts +59 -0
- package/vscode/typings/vscode.editor.d.ts +5 -1
- package/vscode/typings/vscode.env.d.ts +17 -1
- package/vscode/typings/vscode.language.d.ts +22 -3
- package/vscode/typings/vscode.proposed.dropMetadata.d.ts +0 -7
- package/vscode/typings/vscode.tests.d.ts +186 -61
- package/vscode/typings/vscode.window.d.ts +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/sumi",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5-next-1734949468.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.6.
|
|
15
|
+
"@opensumi/ide-components": "3.6.5-next-1734949468.0",
|
|
16
16
|
"vscode-uri": "3.0.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/react": "^18.2.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "af18d22bed239d71760f01d449904c98156ce13c"
|
|
22
22
|
}
|
package/sumi.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare module 'sumi' {
|
|
|
27
27
|
TextEditor,
|
|
28
28
|
TextEditorEdit,
|
|
29
29
|
ExtensionContext as VSCodeExtensionContext,
|
|
30
|
+
ViewBadge,
|
|
30
31
|
// eslint-disable-next-line import/no-unresolved
|
|
31
32
|
} from 'vscode';
|
|
32
33
|
|
|
@@ -472,10 +473,12 @@ declare module 'sumi' {
|
|
|
472
473
|
* @example
|
|
473
474
|
* ```ts
|
|
474
475
|
* const tabbar = kaitian.layout.getTabbarHandler('TabbarIconTest');
|
|
475
|
-
* tabbar.setBadge('
|
|
476
|
+
* tabbar.setBadge({value:20,tooltip:'20'});
|
|
477
|
+
* or
|
|
478
|
+
* tabbar.setBadge('20');
|
|
476
479
|
* ```
|
|
477
480
|
*/
|
|
478
|
-
setBadge(badge
|
|
481
|
+
setBadge(badge?: string | ViewBadge): void;
|
|
479
482
|
|
|
480
483
|
activate(): void;
|
|
481
484
|
|
|
@@ -105,6 +105,11 @@ declare module 'vscode' {
|
|
|
105
105
|
* Note: you cannot use this option with any other options that prompt the user like {@link createIfNone}.
|
|
106
106
|
*/
|
|
107
107
|
silent?: boolean;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The account that you would like to get a session for. This is passed down to the Authentication Provider to be used for creating the correct session.
|
|
111
|
+
*/
|
|
112
|
+
account?: AuthenticationSessionAccountInformation;
|
|
108
113
|
}
|
|
109
114
|
|
|
110
115
|
/**
|
|
@@ -165,6 +170,18 @@ declare module 'vscode' {
|
|
|
165
170
|
readonly changed?: ReadonlyArray<AuthenticationSession>;
|
|
166
171
|
}
|
|
167
172
|
|
|
173
|
+
/**
|
|
174
|
+
* The options passed in to the {@link AuthenticationProvider.getSessions} and
|
|
175
|
+
* {@link AuthenticationProvider.createSession} call.
|
|
176
|
+
*/
|
|
177
|
+
export interface AuthenticationProviderSessionOptions {
|
|
178
|
+
/**
|
|
179
|
+
* The account that is being asked about. If this is passed in, the provider should
|
|
180
|
+
* attempt to return the sessions that are only related to this account.
|
|
181
|
+
*/
|
|
182
|
+
account?: AuthenticationSessionAccountInformation;
|
|
183
|
+
}
|
|
184
|
+
|
|
168
185
|
/**
|
|
169
186
|
* A provider for performing authentication to a service.
|
|
170
187
|
*/
|
|
@@ -181,7 +198,7 @@ declare module 'vscode' {
|
|
|
181
198
|
* these permissions, otherwise all sessions should be returned.
|
|
182
199
|
* @returns A promise that resolves to an array of authentication sessions.
|
|
183
200
|
*/
|
|
184
|
-
getSessions(scopes?: string[]): Thenable<ReadonlyArray<AuthenticationSession>>;
|
|
201
|
+
getSessions(scopes?: string[], options?: AuthenticationProviderSessionOptions): Thenable<ReadonlyArray<AuthenticationSession>>;
|
|
185
202
|
|
|
186
203
|
/**
|
|
187
204
|
* Prompts a user to login.
|
|
@@ -196,8 +213,8 @@ declare module 'vscode' {
|
|
|
196
213
|
* @param scopes A list of scopes, permissions, that the new session should be created with.
|
|
197
214
|
* @returns A promise that resolves to an authentication session.
|
|
198
215
|
*/
|
|
199
|
-
createSession(scopes: string[]): Thenable<AuthenticationSession>;
|
|
200
|
-
|
|
216
|
+
createSession(scopes: string[], options: AuthenticationProviderSessionOptions): Thenable<AuthenticationSession>;
|
|
217
|
+
|
|
201
218
|
/**
|
|
202
219
|
* Removes the session corresponding to session id.
|
|
203
220
|
*
|
|
@@ -259,6 +276,20 @@ declare module 'vscode' {
|
|
|
259
276
|
*/
|
|
260
277
|
export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
|
|
261
278
|
|
|
279
|
+
/**
|
|
280
|
+
* Get all accounts that the user is logged in to for the specified provider.
|
|
281
|
+
* Use this paired with {@link getSession} in order to get an authentication session for a specific account.
|
|
282
|
+
*
|
|
283
|
+
* Currently, there are only two authentication providers that are contributed from built in extensions
|
|
284
|
+
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
|
|
285
|
+
*
|
|
286
|
+
* Note: Getting accounts does not imply that your extension has access to that account or its authentication sessions. You can verify access to the account by calling {@link getSession}.
|
|
287
|
+
*
|
|
288
|
+
* @param providerId The id of the provider to use
|
|
289
|
+
* @returns A thenable that resolves to a readonly array of authentication accounts.
|
|
290
|
+
*/
|
|
291
|
+
export function getAccounts(providerId: string): Thenable<readonly AuthenticationSessionAccountInformation[]>;
|
|
292
|
+
|
|
262
293
|
/**
|
|
263
294
|
* An {@link Event} which fires when the authentication sessions of an authentication provider have
|
|
264
295
|
* been added, removed, or changed.
|
|
@@ -86,6 +86,11 @@ declare module 'vscode' {
|
|
|
86
86
|
*/
|
|
87
87
|
label?: string;
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* The optional state of a comment thread, which may affect how the comment is displayed.
|
|
91
|
+
*/
|
|
92
|
+
state?: CommentThreadState;
|
|
93
|
+
|
|
89
94
|
/**
|
|
90
95
|
* Dispose this comment thread.
|
|
91
96
|
*
|
|
@@ -94,6 +99,14 @@ declare module 'vscode' {
|
|
|
94
99
|
dispose(): void;
|
|
95
100
|
}
|
|
96
101
|
|
|
102
|
+
/**
|
|
103
|
+
* The state of a comment thread.
|
|
104
|
+
*/
|
|
105
|
+
export enum CommentThreadState {
|
|
106
|
+
Unresolved = 0,
|
|
107
|
+
Resolved = 1
|
|
108
|
+
}
|
|
109
|
+
|
|
97
110
|
/**
|
|
98
111
|
* Author information of a [comment](#Comment)
|
|
99
112
|
*/
|