@opensumi/sumi 3.4.5-next-1730119322.0 → 3.4.5

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 CHANGED
@@ -1,301 +1,301 @@
1
1
  {
2
2
  "meta": {
3
3
  "@opensumi/ide-addons": {
4
- "version": "3.4.4",
4
+ "version": "3.4.5",
5
5
  "entry": ["node", "browser", "common"]
6
6
  },
7
7
  "@opensumi/ide-ai-native": {
8
- "version": "3.4.4",
8
+ "version": "3.4.5",
9
9
  "entry": ["node", "browser", "common"]
10
10
  },
11
11
  "@opensumi/ide-collaboration": {
12
- "version": "3.4.4",
12
+ "version": "3.4.5",
13
13
  "entry": ["node", "browser", "common"]
14
14
  },
15
15
  "@opensumi/ide-comments": {
16
- "version": "3.4.4",
16
+ "version": "3.4.5",
17
17
  "entry": ["browser", "common"]
18
18
  },
19
19
  "@opensumi/ide-components": {
20
- "version": "3.4.4",
20
+ "version": "3.4.5",
21
21
  "entry": []
22
22
  },
23
23
  "@opensumi/ide-connection": {
24
- "version": "3.4.4",
24
+ "version": "3.4.5",
25
25
  "entry": ["node", "browser", "common"]
26
26
  },
27
27
  "@opensumi/ide-core-browser": {
28
- "version": "3.4.4",
28
+ "version": "3.4.5",
29
29
  "entry": ["common"]
30
30
  },
31
31
  "@opensumi/ide-core-common": {
32
- "version": "3.4.4",
32
+ "version": "3.4.5",
33
33
  "entry": ["node"]
34
34
  },
35
35
  "@opensumi/ide-core-electron-main": {
36
- "version": "3.4.4",
36
+ "version": "3.4.5",
37
37
  "entry": []
38
38
  },
39
39
  "@opensumi/ide-core-node": {
40
- "version": "3.4.4",
40
+ "version": "3.4.5",
41
41
  "entry": []
42
42
  },
43
43
  "@opensumi/ide-debug": {
44
- "version": "3.4.4",
44
+ "version": "3.4.5",
45
45
  "entry": ["browser", "common"]
46
46
  },
47
47
  "@opensumi/ide-decoration": {
48
- "version": "3.4.4",
48
+ "version": "3.4.5",
49
49
  "entry": ["browser", "common"]
50
50
  },
51
51
  "@opensumi/ide-design": {
52
- "version": "3.4.4",
52
+ "version": "3.4.5",
53
53
  "entry": ["browser", "common"]
54
54
  },
55
55
  "@opensumi/ide-editor": {
56
- "version": "3.4.4",
56
+ "version": "3.4.5",
57
57
  "entry": ["browser", "common"]
58
58
  },
59
59
  "@opensumi/ide-electron-basic": {
60
- "version": "3.4.4",
60
+ "version": "3.4.5",
61
61
  "entry": ["browser"]
62
62
  },
63
63
  "@opensumi/ide-explorer": {
64
- "version": "3.4.4",
64
+ "version": "3.4.5",
65
65
  "entry": ["browser"]
66
66
  },
67
67
  "@opensumi/ide-express-file-server": {
68
- "version": "3.4.4",
68
+ "version": "3.4.5",
69
69
  "entry": ["node", "browser", "common"]
70
70
  },
71
71
  "@opensumi/ide-extension": {
72
- "version": "3.4.4",
72
+ "version": "3.4.5",
73
73
  "entry": ["node", "browser", "common"]
74
74
  },
75
75
  "@opensumi/ide-extension-manager": {
76
- "version": "3.4.4",
76
+ "version": "3.4.5",
77
77
  "entry": ["node", "browser", "common"]
78
78
  },
79
79
  "@opensumi/ide-extension-storage": {
80
- "version": "3.4.4",
80
+ "version": "3.4.5",
81
81
  "entry": ["browser", "common"]
82
82
  },
83
83
  "@opensumi/ide-file-scheme": {
84
- "version": "3.4.4",
84
+ "version": "3.4.5",
85
85
  "entry": ["node", "browser", "common"]
86
86
  },
87
87
  "@opensumi/ide-file-search": {
88
- "version": "3.4.4",
88
+ "version": "3.4.5",
89
89
  "entry": ["node", "common"]
90
90
  },
91
91
  "@opensumi/ide-file-service": {
92
- "version": "3.4.4",
92
+ "version": "3.4.5",
93
93
  "entry": ["node", "browser", "common"]
94
94
  },
95
95
  "@opensumi/ide-file-tree-next": {
96
- "version": "3.4.4",
96
+ "version": "3.4.5",
97
97
  "entry": ["browser", "common"]
98
98
  },
99
99
  "@opensumi/ide-i18n": {
100
- "version": "3.4.4",
100
+ "version": "3.4.5",
101
101
  "entry": ["browser", "common"]
102
102
  },
103
103
  "@opensumi/ide-keymaps": {
104
- "version": "3.4.4",
104
+ "version": "3.4.5",
105
105
  "entry": ["browser", "common"]
106
106
  },
107
107
  "@opensumi/ide-logs": {
108
- "version": "3.4.4",
108
+ "version": "3.4.5",
109
109
  "entry": ["node", "browser", "common"]
110
110
  },
111
111
  "@opensumi/ide-main-layout": {
112
- "version": "3.4.4",
112
+ "version": "3.4.5",
113
113
  "entry": ["browser", "common"]
114
114
  },
115
115
  "@opensumi/ide-markdown": {
116
- "version": "3.4.4",
116
+ "version": "3.4.5",
117
117
  "entry": ["browser", "common"]
118
118
  },
119
119
  "@opensumi/ide-markers": {
120
- "version": "3.4.4",
120
+ "version": "3.4.5",
121
121
  "entry": ["browser", "common"]
122
122
  },
123
123
  "@opensumi/ide-menu-bar": {
124
- "version": "3.4.4",
124
+ "version": "3.4.5",
125
125
  "entry": ["browser"]
126
126
  },
127
127
  "@opensumi/ide-monaco": {
128
- "version": "3.4.4",
128
+ "version": "3.4.5",
129
129
  "entry": ["browser", "common"]
130
130
  },
131
131
  "@opensumi/ide-monaco-enhance": {
132
- "version": "3.4.4",
132
+ "version": "3.4.5",
133
133
  "entry": ["browser", "common"]
134
134
  },
135
135
  "@opensumi/ide-opened-editor": {
136
- "version": "3.4.4",
136
+ "version": "3.4.5",
137
137
  "entry": ["browser", "common"]
138
138
  },
139
139
  "@opensumi/ide-outline": {
140
- "version": "3.4.4",
140
+ "version": "3.4.5",
141
141
  "entry": ["browser", "common"]
142
142
  },
143
143
  "@opensumi/ide-output": {
144
- "version": "3.4.4",
144
+ "version": "3.4.5",
145
145
  "entry": ["browser", "common"]
146
146
  },
147
147
  "@opensumi/ide-overlay": {
148
- "version": "3.4.4",
148
+ "version": "3.4.5",
149
149
  "entry": ["browser", "common"]
150
150
  },
151
151
  "@opensumi/ide-preferences": {
152
- "version": "3.4.4",
152
+ "version": "3.4.5",
153
153
  "entry": ["browser", "common"]
154
154
  },
155
155
  "@opensumi/ide-process": {
156
- "version": "3.4.4",
156
+ "version": "3.4.5",
157
157
  "entry": ["node", "common"]
158
158
  },
159
159
  "@opensumi/ide-quick-open": {
160
- "version": "3.4.4",
160
+ "version": "3.4.5",
161
161
  "entry": ["browser", "common"]
162
162
  },
163
163
  "@opensumi/remote-cli": {
164
- "version": "3.4.4",
164
+ "version": "3.4.5",
165
165
  "entry": []
166
166
  },
167
167
  "@opensumi/ide-remote-opener": {
168
- "version": "3.4.4",
168
+ "version": "3.4.5",
169
169
  "entry": ["node", "browser", "common"]
170
170
  },
171
171
  "@opensumi/ide-scm": {
172
- "version": "3.4.4",
172
+ "version": "3.4.5",
173
173
  "entry": ["browser", "common"]
174
174
  },
175
175
  "@opensumi/ide-search": {
176
- "version": "3.4.4",
176
+ "version": "3.4.5",
177
177
  "entry": ["node", "browser", "common"]
178
178
  },
179
179
  "@opensumi/ide-startup": {
180
- "version": "3.4.4",
180
+ "version": "3.4.5",
181
181
  "entry": ["browser"]
182
182
  },
183
183
  "@opensumi/ide-static-resource": {
184
- "version": "3.4.4",
184
+ "version": "3.4.5",
185
185
  "entry": ["browser"]
186
186
  },
187
187
  "@opensumi/ide-status-bar": {
188
- "version": "3.4.4",
188
+ "version": "3.4.5",
189
189
  "entry": ["browser", "common"]
190
190
  },
191
191
  "@opensumi/ide-storage": {
192
- "version": "3.4.4",
192
+ "version": "3.4.5",
193
193
  "entry": ["browser", "common"]
194
194
  },
195
195
  "@opensumi/ide-task": {
196
- "version": "3.4.4",
196
+ "version": "3.4.5",
197
197
  "entry": ["browser", "common"]
198
198
  },
199
199
  "@opensumi/ide-terminal-next": {
200
- "version": "3.4.4",
200
+ "version": "3.4.5",
201
201
  "entry": ["node", "browser", "common"]
202
202
  },
203
203
  "@opensumi/ide-testing": {
204
- "version": "3.4.4",
204
+ "version": "3.4.5",
205
205
  "entry": ["browser", "common"]
206
206
  },
207
207
  "@opensumi/ide-theme": {
208
- "version": "3.4.4",
208
+ "version": "3.4.5",
209
209
  "entry": ["browser", "common"]
210
210
  },
211
211
  "@opensumi/ide-toolbar": {
212
- "version": "3.4.4",
212
+ "version": "3.4.5",
213
213
  "entry": ["browser"]
214
214
  },
215
215
  "@opensumi/sumi": {
216
- "version": "3.4.4",
216
+ "version": "3.4.5",
217
217
  "entry": []
218
218
  },
219
219
  "@opensumi/ide-utils": {
220
- "version": "3.4.4",
220
+ "version": "3.4.5",
221
221
  "entry": []
222
222
  },
223
223
  "@opensumi/ide-variable": {
224
- "version": "3.4.4",
224
+ "version": "3.4.5",
225
225
  "entry": ["browser", "common"]
226
226
  },
227
227
  "@opensumi/ide-webview": {
228
- "version": "3.4.4",
228
+ "version": "3.4.5",
229
229
  "entry": ["browser", "common"]
230
230
  },
231
231
  "@opensumi/ide-workspace": {
232
- "version": "3.4.4",
232
+ "version": "3.4.5",
233
233
  "entry": ["browser", "common"]
234
234
  },
235
235
  "@opensumi/ide-workspace-edit": {
236
- "version": "3.4.4",
236
+ "version": "3.4.5",
237
237
  "entry": ["browser", "common"]
238
238
  }
239
239
  },
240
240
  "packages": {
241
- "@opensumi/ide-addons": "3.4.4",
242
- "@opensumi/ide-ai-native": "3.4.4",
243
- "@opensumi/ide-collaboration": "3.4.4",
244
- "@opensumi/ide-comments": "3.4.4",
245
- "@opensumi/ide-components": "3.4.4",
246
- "@opensumi/ide-connection": "3.4.4",
247
- "@opensumi/ide-core-browser": "3.4.4",
248
- "@opensumi/ide-core-common": "3.4.4",
249
- "@opensumi/ide-core-electron-main": "3.4.4",
250
- "@opensumi/ide-core-node": "3.4.4",
251
- "@opensumi/ide-debug": "3.4.4",
252
- "@opensumi/ide-decoration": "3.4.4",
253
- "@opensumi/ide-design": "3.4.4",
254
- "@opensumi/ide-editor": "3.4.4",
255
- "@opensumi/ide-electron-basic": "3.4.4",
256
- "@opensumi/ide-explorer": "3.4.4",
257
- "@opensumi/ide-express-file-server": "3.4.4",
258
- "@opensumi/ide-extension": "3.4.4",
259
- "@opensumi/ide-extension-manager": "3.4.4",
260
- "@opensumi/ide-extension-storage": "3.4.4",
261
- "@opensumi/ide-file-scheme": "3.4.4",
262
- "@opensumi/ide-file-search": "3.4.4",
263
- "@opensumi/ide-file-service": "3.4.4",
264
- "@opensumi/ide-file-tree-next": "3.4.4",
265
- "@opensumi/ide-i18n": "3.4.4",
266
- "@opensumi/ide-keymaps": "3.4.4",
267
- "@opensumi/ide-logs": "3.4.4",
268
- "@opensumi/ide-main-layout": "3.4.4",
269
- "@opensumi/ide-markdown": "3.4.4",
270
- "@opensumi/ide-markers": "3.4.4",
271
- "@opensumi/ide-menu-bar": "3.4.4",
272
- "@opensumi/ide-monaco": "3.4.4",
273
- "@opensumi/ide-monaco-enhance": "3.4.4",
274
- "@opensumi/ide-opened-editor": "3.4.4",
275
- "@opensumi/ide-outline": "3.4.4",
276
- "@opensumi/ide-output": "3.4.4",
277
- "@opensumi/ide-overlay": "3.4.4",
278
- "@opensumi/ide-preferences": "3.4.4",
279
- "@opensumi/ide-process": "3.4.4",
280
- "@opensumi/ide-quick-open": "3.4.4",
281
- "@opensumi/remote-cli": "3.4.4",
282
- "@opensumi/ide-remote-opener": "3.4.4",
283
- "@opensumi/ide-scm": "3.4.4",
284
- "@opensumi/ide-search": "3.4.4",
285
- "@opensumi/ide-startup": "3.4.4",
286
- "@opensumi/ide-static-resource": "3.4.4",
287
- "@opensumi/ide-status-bar": "3.4.4",
288
- "@opensumi/ide-storage": "3.4.4",
289
- "@opensumi/ide-task": "3.4.4",
290
- "@opensumi/ide-terminal-next": "3.4.4",
291
- "@opensumi/ide-testing": "3.4.4",
292
- "@opensumi/ide-theme": "3.4.4",
293
- "@opensumi/ide-toolbar": "3.4.4",
294
- "@opensumi/sumi": "3.4.4",
295
- "@opensumi/ide-utils": "3.4.4",
296
- "@opensumi/ide-variable": "3.4.4",
297
- "@opensumi/ide-webview": "3.4.4",
298
- "@opensumi/ide-workspace": "3.4.4",
299
- "@opensumi/ide-workspace-edit": "3.4.4"
241
+ "@opensumi/ide-addons": "3.4.5",
242
+ "@opensumi/ide-ai-native": "3.4.5",
243
+ "@opensumi/ide-collaboration": "3.4.5",
244
+ "@opensumi/ide-comments": "3.4.5",
245
+ "@opensumi/ide-components": "3.4.5",
246
+ "@opensumi/ide-connection": "3.4.5",
247
+ "@opensumi/ide-core-browser": "3.4.5",
248
+ "@opensumi/ide-core-common": "3.4.5",
249
+ "@opensumi/ide-core-electron-main": "3.4.5",
250
+ "@opensumi/ide-core-node": "3.4.5",
251
+ "@opensumi/ide-debug": "3.4.5",
252
+ "@opensumi/ide-decoration": "3.4.5",
253
+ "@opensumi/ide-design": "3.4.5",
254
+ "@opensumi/ide-editor": "3.4.5",
255
+ "@opensumi/ide-electron-basic": "3.4.5",
256
+ "@opensumi/ide-explorer": "3.4.5",
257
+ "@opensumi/ide-express-file-server": "3.4.5",
258
+ "@opensumi/ide-extension": "3.4.5",
259
+ "@opensumi/ide-extension-manager": "3.4.5",
260
+ "@opensumi/ide-extension-storage": "3.4.5",
261
+ "@opensumi/ide-file-scheme": "3.4.5",
262
+ "@opensumi/ide-file-search": "3.4.5",
263
+ "@opensumi/ide-file-service": "3.4.5",
264
+ "@opensumi/ide-file-tree-next": "3.4.5",
265
+ "@opensumi/ide-i18n": "3.4.5",
266
+ "@opensumi/ide-keymaps": "3.4.5",
267
+ "@opensumi/ide-logs": "3.4.5",
268
+ "@opensumi/ide-main-layout": "3.4.5",
269
+ "@opensumi/ide-markdown": "3.4.5",
270
+ "@opensumi/ide-markers": "3.4.5",
271
+ "@opensumi/ide-menu-bar": "3.4.5",
272
+ "@opensumi/ide-monaco": "3.4.5",
273
+ "@opensumi/ide-monaco-enhance": "3.4.5",
274
+ "@opensumi/ide-opened-editor": "3.4.5",
275
+ "@opensumi/ide-outline": "3.4.5",
276
+ "@opensumi/ide-output": "3.4.5",
277
+ "@opensumi/ide-overlay": "3.4.5",
278
+ "@opensumi/ide-preferences": "3.4.5",
279
+ "@opensumi/ide-process": "3.4.5",
280
+ "@opensumi/ide-quick-open": "3.4.5",
281
+ "@opensumi/remote-cli": "3.4.5",
282
+ "@opensumi/ide-remote-opener": "3.4.5",
283
+ "@opensumi/ide-scm": "3.4.5",
284
+ "@opensumi/ide-search": "3.4.5",
285
+ "@opensumi/ide-startup": "3.4.5",
286
+ "@opensumi/ide-static-resource": "3.4.5",
287
+ "@opensumi/ide-status-bar": "3.4.5",
288
+ "@opensumi/ide-storage": "3.4.5",
289
+ "@opensumi/ide-task": "3.4.5",
290
+ "@opensumi/ide-terminal-next": "3.4.5",
291
+ "@opensumi/ide-testing": "3.4.5",
292
+ "@opensumi/ide-theme": "3.4.5",
293
+ "@opensumi/ide-toolbar": "3.4.5",
294
+ "@opensumi/sumi": "3.4.5",
295
+ "@opensumi/ide-utils": "3.4.5",
296
+ "@opensumi/ide-variable": "3.4.5",
297
+ "@opensumi/ide-webview": "3.4.5",
298
+ "@opensumi/ide-workspace": "3.4.5",
299
+ "@opensumi/ide-workspace-edit": "3.4.5"
300
300
  }
301
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/sumi",
3
- "version": "3.4.5-next-1730119322.0",
3
+ "version": "3.4.5",
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.4.5-next-1730119322.0",
15
+ "@opensumi/ide-components": "3.4.5",
16
16
  "vscode-uri": "3.0.2"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/react": "^18.2.0"
20
20
  },
21
- "gitHead": "1a26793fcfbbcbf32dfcc698eb7ed9fc9831143d"
21
+ "gitHead": "26f3ee057d0a1938de14a8977e12c2972f46c9e4"
22
22
  }
@@ -40,16 +40,6 @@ declare module 'vscode' {
40
40
  readonly label: string;
41
41
  }
42
42
 
43
- /**
44
- * Optional options to be used when calling {@link authentication.getSession} with the flag `forceNewSession`.
45
- */
46
- export interface AuthenticationForceNewSessionOptions {
47
- /**
48
- * An optional message that will be displayed to the user when we ask to re-authenticate. Providing additional context
49
- * as to why you are asking a user to re-authenticate can help increase the odds that they will accept.
50
- */
51
- detail?: string;
52
- }
53
43
 
54
44
  /**
55
45
  * Options to be used when getting an {@link AuthenticationSession} from an {@link AuthenticationProvider}.
@@ -70,17 +60,14 @@ declare module 'vscode' {
70
60
  createIfNone?: boolean;
71
61
 
72
62
  /**
73
- * Whether we should attempt to reauthenticate even if there is already a session available.
74
- *
75
- * If true, a modal dialog will be shown asking the user to sign in again. This is mostly used for scenarios
76
- * where the token needs to be re minted because it has lost some authorization.
77
- *
78
- * If there are no existing sessions and forceNewSession is true, it will behave identically to
79
- * {@link AuthenticationGetSessionOptions.createIfNone createIfNone}.
80
- *
81
- * This defaults to false.
82
- */
83
- forceNewSession?: boolean | AuthenticationForceNewSessionOptions;
63
+ * Whether we should attempt to reauthenticate even if there is already a session available.
64
+ *
65
+ * If true, a modal dialog will be shown asking the user to sign in again. This is mostly used for scenarios
66
+ * where the token needs to be re minted because it has lost some authorization.
67
+ *
68
+ * Defaults to false.
69
+ */
70
+ forceNewSession?: boolean | { detail: string };
84
71
 
85
72
 
86
73
  /**
@@ -215,49 +202,34 @@ declare module 'vscode' {
215
202
  */
216
203
  export namespace authentication {
217
204
  /**
218
- * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
219
- * registered, or if the user does not consent to sharing authentication information with
220
- * the extension. If there are multiple sessions with the same scopes, the user will be shown a
221
- * quickpick to select which account they would like to use.
222
- *
223
- * Currently, there are only two authentication providers that are contributed from built in extensions
224
- * to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
225
- * @param providerId The id of the provider to use
226
- * @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
227
- * @param options The {@link AuthenticationGetSessionOptions} to use
228
- * @returns A thenable that resolves to an authentication session
229
- */
230
- export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { /** */createIfNone: true }): Thenable<AuthenticationSession>;
231
-
232
- /**
233
- * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
234
- * registered, or if the user does not consent to sharing authentication information with
235
- * the extension. If there are multiple sessions with the same scopes, the user will be shown a
236
- * quickpick to select which account they would like to use.
237
- *
238
- * Currently, there are only two authentication providers that are contributed from built in extensions
239
- * to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
240
- * @param providerId The id of the provider to use
241
- * @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
242
- * @param options The {@link AuthenticationGetSessionOptions} to use
243
- * @returns A thenable that resolves to an authentication session
244
- */
245
- export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { /** literal-type defines return type */forceNewSession: true | AuthenticationForceNewSessionOptions }): Thenable<AuthenticationSession>;
205
+ * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
206
+ * registered, or if the user does not consent to sharing authentication information with
207
+ * the extension. If there are multiple sessions with the same scopes, the user will be shown a
208
+ * quickpick to select which account they would like to use.
209
+ *
210
+ * Currently, there are only two authentication providers that are contributed from built in extensions
211
+ * to VS Code that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
212
+ * @param providerId The id of the provider to use
213
+ * @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
214
+ * @param options The {@link GetSessionOptions} to use
215
+ * @returns A thenable that resolves to an authentication session
216
+ */
217
+ export function getSession(providerId: string, scopes: string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;
246
218
 
247
- /**
248
- * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
249
- * registered, or if the user does not consent to sharing authentication information with
250
- * the extension. If there are multiple sessions with the same scopes, the user will be shown a
251
- * quickpick to select which account they would like to use.
252
- *
253
- * Currently, there are only two authentication providers that are contributed from built in extensions
254
- * to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
255
- * @param providerId The id of the provider to use
256
- * @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
257
- * @param options The {@link AuthenticationGetSessionOptions} to use
258
- * @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
259
- */
260
- export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
219
+ /**
220
+ * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
221
+ * registered, or if the user does not consent to sharing authentication information with
222
+ * the extension. If there are multiple sessions with the same scopes, the user will be shown a
223
+ * quickpick to select which account they would like to use.
224
+ *
225
+ * Currently, there are only two authentication providers that are contributed from built in extensions
226
+ * to VS Code that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
227
+ * @param providerId The id of the provider to use
228
+ * @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
229
+ * @param options The {@link GetSessionOptions} to use
230
+ * @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
231
+ */
232
+ export function getSession(providerId: string, scopes: string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
261
233
 
262
234
  /**
263
235
  * An {@link Event} which fires when the authentication sessions of an authentication provider have
@@ -2375,25 +2375,6 @@ declare module 'vscode' {
2375
2375
  * signaled by returning `undefined`, `null`, or an empty array.
2376
2376
  */
2377
2377
  provideDocumentRangeFormattingEdits(document: TextDocument, range: Range, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;
2378
-
2379
- /**
2380
- * Provide formatting edits for multiple ranges in a document.
2381
- *
2382
- * This function is optional but allows a formatter to perform faster when formatting only modified ranges or when
2383
- * formatting a large number of selections.
2384
- *
2385
- * The given ranges are hints and providers can decide to format a smaller
2386
- * or larger range. Often this is done by adjusting the start and end
2387
- * of the range to full syntax nodes.
2388
- *
2389
- * @param document The document in which the command was invoked.
2390
- * @param ranges The ranges which should be formatted.
2391
- * @param options Options controlling formatting.
2392
- * @param token A cancellation token.
2393
- * @returns A set of text edits or a thenable that resolves to such. The lack of a result can be
2394
- * signaled by returning `undefined`, `null`, or an empty array.
2395
- */
2396
- provideDocumentRangesFormattingEdits?(document: TextDocument, ranges: Range[], options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;
2397
2378
  }
2398
2379
 
2399
2380
  /**