@codingame/monaco-vscode-extensions-service-override 24.3.0 → 25.0.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/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +29 -29
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +14 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +5 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +28 -31
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +3 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +10 -29
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +11 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +20 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.d.ts +2 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +6 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +5 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +16 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.d.ts +0 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +7 -65
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +5 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.d.ts +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +7 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.d.ts +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +8 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +4 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +8 -5
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +3 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +8 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +25 -13
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.d.ts +3 -1
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "25.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "25.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -12,9 +12,9 @@ import { IExtensionManagementService, IExtensionGalleryService } from '@codingam
|
|
|
12
12
|
import { getIdAndVersion, areSameExtensions, getGalleryExtensionId, getExtensionId } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
13
13
|
import { ExtensionType, EXTENSION_CATEGORIES } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
14
14
|
|
|
15
|
-
const notFound = (id) => ( localize(
|
|
15
|
+
const notFound = (id) => ( localize(1848, "Extension '{0}' not found.", id));
|
|
16
16
|
const useId = ( localize(
|
|
17
|
-
|
|
17
|
+
1849,
|
|
18
18
|
"Make sure you use the full extension ID, including the publisher, e.g.: {0}",
|
|
19
19
|
'ms-dotnettools.csharp'
|
|
20
20
|
));
|
|
@@ -51,7 +51,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
if (this.location) {
|
|
54
|
-
this.logger.info(( localize(
|
|
54
|
+
this.logger.info(( localize(1850, "Extensions installed on {0}:", this.location)));
|
|
55
55
|
}
|
|
56
56
|
extensions = extensions.sort((e1, e2) => e1.identifier.id.localeCompare(e2.identifier.id));
|
|
57
57
|
let lastId = undefined;
|
|
@@ -66,7 +66,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
66
66
|
const failed = [];
|
|
67
67
|
try {
|
|
68
68
|
if (extensions.length) {
|
|
69
|
-
this.logger.info(this.location ? ( localize(
|
|
69
|
+
this.logger.info(this.location ? ( localize(1851, "Installing extensions on {0}...", this.location)) : ( localize(1852, "Installing extensions...")));
|
|
70
70
|
}
|
|
71
71
|
const installVSIXInfos = [];
|
|
72
72
|
const installExtensionInfos = [];
|
|
@@ -109,11 +109,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
catch (error) {
|
|
112
|
-
this.logger.error(( localize(
|
|
112
|
+
this.logger.error(( localize(1853, "Error while installing extensions: {0}", getErrorMessage(error))));
|
|
113
113
|
throw error;
|
|
114
114
|
}
|
|
115
115
|
if (failed.length) {
|
|
116
|
-
throw ( new Error(( localize(
|
|
116
|
+
throw ( new Error(( localize(1854, "Failed Installing Extensions: {0}", failed.join(', ')))));
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
async updateExtensions(profileLocation) {
|
|
@@ -125,7 +125,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
this.logger.trace(( localize(
|
|
128
|
-
|
|
128
|
+
1855,
|
|
129
129
|
"Fetching latest versions for {0} extensions",
|
|
130
130
|
installedExtensionsQuery.length
|
|
131
131
|
)));
|
|
@@ -142,11 +142,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
if (!extensionsToUpdate.length) {
|
|
145
|
-
this.logger.info(( localize(
|
|
145
|
+
this.logger.info(( localize(1856, "No extension to update")));
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
this.logger.info(( localize(
|
|
149
|
-
|
|
149
|
+
1857,
|
|
150
150
|
"Updating extensions: {0}",
|
|
151
151
|
( extensionsToUpdate.map(ext => ext.extension.identifier.id)).join(', ')
|
|
152
152
|
)));
|
|
@@ -154,7 +154,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
154
154
|
for (const extensionResult of installationResult) {
|
|
155
155
|
if (extensionResult.error) {
|
|
156
156
|
this.logger.error(( localize(
|
|
157
|
-
|
|
157
|
+
1858,
|
|
158
158
|
"Error while updating extension {0}: {1}",
|
|
159
159
|
extensionResult.identifier.id,
|
|
160
160
|
getErrorMessage(extensionResult.error)
|
|
@@ -162,7 +162,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
164
|
this.logger.info(( localize(
|
|
165
|
-
|
|
165
|
+
1859,
|
|
166
166
|
"Extension '{0}' v{1} was successfully updated.",
|
|
167
167
|
extensionResult.identifier.id,
|
|
168
168
|
extensionResult.local?.manifest.version
|
|
@@ -177,7 +177,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
177
177
|
if (installedExtension) {
|
|
178
178
|
if (!force && (!version || (version === 'prerelease' && installedExtension.preRelease))) {
|
|
179
179
|
this.logger.info(( localize(
|
|
180
|
-
|
|
180
|
+
1860,
|
|
181
181
|
"Extension '{0}' v{1} is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: '{2}@1.2.3'.",
|
|
182
182
|
id,
|
|
183
183
|
installedExtension.manifest.version,
|
|
@@ -186,7 +186,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
186
186
|
return false;
|
|
187
187
|
}
|
|
188
188
|
if (version && installedExtension.manifest.version === version) {
|
|
189
|
-
this.logger.info(( localize(
|
|
189
|
+
this.logger.info(( localize(1861, "Extension '{0}' is already installed.", `${id}@${version}`)));
|
|
190
190
|
return false;
|
|
191
191
|
}
|
|
192
192
|
if (installedExtension.preRelease && version !== 'prerelease') {
|
|
@@ -223,24 +223,24 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
223
223
|
if (installedExtension) {
|
|
224
224
|
if (gallery.version === installedExtension.manifest.version) {
|
|
225
225
|
this.logger.info(( localize(
|
|
226
|
-
|
|
226
|
+
1861,
|
|
227
227
|
"Extension '{0}' is already installed.",
|
|
228
228
|
version ? `${id}@${version}` : id
|
|
229
229
|
)));
|
|
230
230
|
return;
|
|
231
231
|
}
|
|
232
232
|
this.logger.info(( localize(
|
|
233
|
-
|
|
233
|
+
1862,
|
|
234
234
|
"Updating the extension '{0}' to the version {1}",
|
|
235
235
|
id,
|
|
236
236
|
gallery.version
|
|
237
237
|
)));
|
|
238
238
|
}
|
|
239
239
|
if (installOptions.isBuiltin) {
|
|
240
|
-
this.logger.info(version ? ( localize(
|
|
240
|
+
this.logger.info(version ? ( localize(1863, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(1864, "Installing builtin extension '{0}'...", id)));
|
|
241
241
|
}
|
|
242
242
|
else {
|
|
243
|
-
this.logger.info(version ? ( localize(
|
|
243
|
+
this.logger.info(version ? ( localize(1865, "Installing extension '{0}' v{1}...", id, version)) : ( localize(1866, "Installing extension '{0}'...", id)));
|
|
244
244
|
}
|
|
245
245
|
extensionsToInstall.push({
|
|
246
246
|
extension: gallery,
|
|
@@ -252,7 +252,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
252
252
|
for (const extensionResult of installationResult) {
|
|
253
253
|
if (extensionResult.error) {
|
|
254
254
|
this.logger.error(( localize(
|
|
255
|
-
|
|
255
|
+
1867,
|
|
256
256
|
"Error while installing extension {0}: {1}",
|
|
257
257
|
extensionResult.identifier.id,
|
|
258
258
|
getErrorMessage(extensionResult.error)
|
|
@@ -261,7 +261,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
263
263
|
this.logger.info(( localize(
|
|
264
|
-
|
|
264
|
+
1868,
|
|
265
265
|
"Extension '{0}' v{1} was successfully installed.",
|
|
266
266
|
extensionResult.identifier.id,
|
|
267
267
|
extensionResult.local?.manifest.version
|
|
@@ -280,11 +280,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
280
280
|
if (valid) {
|
|
281
281
|
try {
|
|
282
282
|
await this.extensionManagementService.install(vsix, { ...installOptions, installGivenVersion: true });
|
|
283
|
-
this.logger.info(( localize(
|
|
283
|
+
this.logger.info(( localize(1869, "Extension '{0}' was successfully installed.", basename(vsix))));
|
|
284
284
|
}
|
|
285
285
|
catch (error) {
|
|
286
286
|
if (isCancellationError(error)) {
|
|
287
|
-
this.logger.info(( localize(
|
|
287
|
+
this.logger.info(( localize(1870, "Cancelled installing extension '{0}'.", basename(vsix))));
|
|
288
288
|
}
|
|
289
289
|
else {
|
|
290
290
|
throw error;
|
|
@@ -319,7 +319,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
319
319
|
const newer = installedExtensions.find(local => areSameExtensions(extensionIdentifier, local.identifier) && semverExports.gt(local.manifest.version, manifest.version));
|
|
320
320
|
if (newer) {
|
|
321
321
|
this.logger.info(( localize(
|
|
322
|
-
|
|
322
|
+
1871,
|
|
323
323
|
"A newer version of extension '{0}' v{1} is already installed. Use '--force' option to downgrade to older version.",
|
|
324
324
|
newer.identifier.id,
|
|
325
325
|
newer.manifest.version,
|
|
@@ -347,7 +347,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
347
347
|
}
|
|
348
348
|
if (( extensionsToUninstall.some(e => e.type === ExtensionType.System))) {
|
|
349
349
|
this.logger.info(( localize(
|
|
350
|
-
|
|
350
|
+
1872,
|
|
351
351
|
"Extension '{0}' is a Built-in extension and cannot be uninstalled",
|
|
352
352
|
id
|
|
353
353
|
)));
|
|
@@ -355,26 +355,26 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
355
355
|
}
|
|
356
356
|
if (!force && ( extensionsToUninstall.some(e => e.isBuiltin))) {
|
|
357
357
|
this.logger.info(( localize(
|
|
358
|
-
|
|
358
|
+
1873,
|
|
359
359
|
"Extension '{0}' is marked as a Built-in extension by user. Please use '--force' option to uninstall it.",
|
|
360
360
|
id
|
|
361
361
|
)));
|
|
362
362
|
return;
|
|
363
363
|
}
|
|
364
|
-
this.logger.info(( localize(
|
|
364
|
+
this.logger.info(( localize(1874, "Uninstalling {0}...", id)));
|
|
365
365
|
for (const extensionToUninstall of extensionsToUninstall) {
|
|
366
366
|
await this.extensionManagementService.uninstall(extensionToUninstall, { profileLocation });
|
|
367
367
|
}
|
|
368
368
|
if (this.location) {
|
|
369
369
|
this.logger.info(( localize(
|
|
370
|
-
|
|
370
|
+
1875,
|
|
371
371
|
"Extension '{0}' was successfully uninstalled from {1}!",
|
|
372
372
|
id,
|
|
373
373
|
this.location
|
|
374
374
|
)));
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
377
|
-
this.logger.info(( localize(
|
|
377
|
+
this.logger.info(( localize(1876, "Extension '{0}' was successfully uninstalled!", id)));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
@@ -392,7 +392,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
notInstalled(id) {
|
|
395
|
-
return this.location ? ( localize(
|
|
395
|
+
return this.location ? ( localize(1877, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(1878, "Extension '{0}' is not installed.", id));
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
ExtensionManagementCLI = ( __decorate([
|
|
@@ -186,8 +186,8 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
186
186
|
return await deferredPromise.p;
|
|
187
187
|
}
|
|
188
188
|
$showContinueNotification(message) {
|
|
189
|
-
const yes = ( localize(
|
|
190
|
-
const no = ( localize(
|
|
189
|
+
const yes = ( localize(2472, "Yes"));
|
|
190
|
+
const no = ( localize(2473, "No"));
|
|
191
191
|
const deferredPromise = ( new DeferredPromise());
|
|
192
192
|
let result = false;
|
|
193
193
|
const handle = this.notificationService.prompt(Severity.Warning, message, [{
|
|
@@ -235,13 +235,13 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
235
235
|
else {
|
|
236
236
|
message = recreatingSession
|
|
237
237
|
? ( localize(
|
|
238
|
-
|
|
238
|
+
2474,
|
|
239
239
|
"The extension '{0}' wants you to sign in again using {1}.",
|
|
240
240
|
extensionName,
|
|
241
241
|
provider.label
|
|
242
242
|
))
|
|
243
243
|
: ( localize(
|
|
244
|
-
|
|
244
|
+
2475,
|
|
245
245
|
"The extension '{0}' wants to sign in using {1}.",
|
|
246
246
|
extensionName,
|
|
247
247
|
provider.label
|
|
@@ -249,7 +249,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
249
249
|
}
|
|
250
250
|
const buttons = [
|
|
251
251
|
{
|
|
252
|
-
label: ( localize(
|
|
252
|
+
label: ( localize(2476, "&&Allow")),
|
|
253
253
|
run() {
|
|
254
254
|
return true;
|
|
255
255
|
},
|
|
@@ -257,7 +257,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
257
257
|
];
|
|
258
258
|
if (options?.learnMore) {
|
|
259
259
|
buttons.push({
|
|
260
|
-
label: ( localize(
|
|
260
|
+
label: ( localize(2477, "Learn more")),
|
|
261
261
|
run: async () => {
|
|
262
262
|
const result = this.loginPrompt(provider, extensionName, recreatingSession, options);
|
|
263
263
|
await this.openerService.open(URI.revive(options.learnMore), { allowCommands: true });
|
|
@@ -276,9 +276,9 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
276
276
|
}
|
|
277
277
|
async continueWithIncorrectAccountPrompt(chosenAccountLabel, requestedAccountLabel) {
|
|
278
278
|
const result = await this.dialogService.prompt({
|
|
279
|
-
message: ( localize(
|
|
279
|
+
message: ( localize(2478, "Incorrect account detected")),
|
|
280
280
|
detail: ( localize(
|
|
281
|
-
|
|
281
|
+
2479,
|
|
282
282
|
"The chosen account, {0}, does not match the requested account, {1}.",
|
|
283
283
|
chosenAccountLabel,
|
|
284
284
|
requestedAccountLabel
|
|
@@ -287,11 +287,11 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
287
287
|
cancelButton: true,
|
|
288
288
|
buttons: [
|
|
289
289
|
{
|
|
290
|
-
label: ( localize(
|
|
290
|
+
label: ( localize(2480, 'Keep {0}', chosenAccountLabel)),
|
|
291
291
|
run: () => chosenAccountLabel
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
label: ( localize(
|
|
294
|
+
label: ( localize(2481, 'Login with {0}', requestedAccountLabel)),
|
|
295
295
|
run: () => requestedAccountLabel
|
|
296
296
|
}
|
|
297
297
|
],
|
|
@@ -371,10 +371,10 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
371
371
|
this.authenticationExtensionsService.updateAccountPreference(extensionId, providerId, session.account);
|
|
372
372
|
return session;
|
|
373
373
|
}
|
|
374
|
-
if (!matchingAccountPreferenceSession
|
|
375
|
-
const
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
374
|
+
if (!matchingAccountPreferenceSession) {
|
|
375
|
+
const validSessions = sessions.filter(session => this.authenticationAccessService.isAccessAllowed(providerId, session.account.label, extensionId));
|
|
376
|
+
if (validSessions.length === 1) {
|
|
377
|
+
return validSessions[0];
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
if (!options.silent) {
|
|
@@ -433,16 +433,16 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
433
433
|
async $showDeviceCodeModal(userCode, verificationUri) {
|
|
434
434
|
const { result } = await this.dialogService.prompt({
|
|
435
435
|
type: Severity.Info,
|
|
436
|
-
message: ( localize(
|
|
436
|
+
message: ( localize(2482, "Device Code Authentication")),
|
|
437
437
|
detail: ( localize(
|
|
438
|
-
|
|
438
|
+
2483,
|
|
439
439
|
"Your code: {0}\n\nTo complete authentication, navigate to {1} and enter the code above.",
|
|
440
440
|
userCode,
|
|
441
441
|
verificationUri
|
|
442
442
|
)),
|
|
443
443
|
buttons: [
|
|
444
444
|
{
|
|
445
|
-
label: ( localize(
|
|
445
|
+
label: ( localize(2484, "Copy & Continue")),
|
|
446
446
|
run: () => true
|
|
447
447
|
}
|
|
448
448
|
],
|
|
@@ -454,7 +454,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
454
454
|
return await this.openerService.open(( URI.parse(verificationUri)));
|
|
455
455
|
}
|
|
456
456
|
catch (error) {
|
|
457
|
-
this.notificationService.error(( localize(
|
|
457
|
+
this.notificationService.error(( localize(2485, "Failed to open {0}", verificationUri)));
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
return false;
|
|
@@ -463,47 +463,47 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
463
463
|
const redirectUrls = 'http://127.0.0.1:33418\nhttps://vscode.dev/redirect';
|
|
464
464
|
const result = await this.dialogService.prompt({
|
|
465
465
|
type: Severity.Info,
|
|
466
|
-
message: ( localize(
|
|
466
|
+
message: ( localize(2486, "Dynamic Client Registration not supported")),
|
|
467
467
|
detail: ( localize(
|
|
468
|
-
|
|
468
|
+
2487,
|
|
469
469
|
"The authorization server '{0}' does not support automatic client registration. Do you want to proceed by manually providing a client registration (client ID)?\n\nNote: When registering your OAuth application, make sure to include these redirect URIs:\n{1}",
|
|
470
470
|
authorizationServerUrl,
|
|
471
471
|
redirectUrls
|
|
472
472
|
)),
|
|
473
473
|
buttons: [
|
|
474
474
|
{
|
|
475
|
-
label: ( localize(
|
|
475
|
+
label: ( localize(2488, "Copy URIs & Proceed")),
|
|
476
476
|
run: async () => {
|
|
477
477
|
try {
|
|
478
478
|
await this.clipboardService.writeText(redirectUrls);
|
|
479
479
|
}
|
|
480
480
|
catch (error) {
|
|
481
|
-
this.notificationService.error(( localize(
|
|
481
|
+
this.notificationService.error(( localize(2489, "Failed to copy redirect URIs to clipboard.")));
|
|
482
482
|
}
|
|
483
483
|
return true;
|
|
484
484
|
}
|
|
485
485
|
},
|
|
486
486
|
],
|
|
487
487
|
cancelButton: {
|
|
488
|
-
label: ( localize(
|
|
488
|
+
label: ( localize(2490, "Cancel")),
|
|
489
489
|
run: () => false
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
if (!result) {
|
|
493
493
|
return undefined;
|
|
494
494
|
}
|
|
495
|
-
const sharedTitle = ( localize(
|
|
495
|
+
const sharedTitle = ( localize(2491, "Add Client Registration Details"));
|
|
496
496
|
const clientId = await this.quickInputService.input({
|
|
497
497
|
title: sharedTitle,
|
|
498
498
|
prompt: ( localize(
|
|
499
|
-
|
|
499
|
+
2492,
|
|
500
500
|
"Enter an existing client ID that has been registered with the following redirect URIs: http://127.0.0.1:33418, https://vscode.dev/redirect"
|
|
501
501
|
)),
|
|
502
|
-
placeHolder: ( localize(
|
|
502
|
+
placeHolder: ( localize(2493, "OAuth client ID (azye39d...)")),
|
|
503
503
|
ignoreFocusLost: true,
|
|
504
504
|
validateInput: async (value) => {
|
|
505
505
|
if (!value || value.trim().length === 0) {
|
|
506
|
-
return localize(
|
|
506
|
+
return localize(2494, "Client ID is required");
|
|
507
507
|
}
|
|
508
508
|
return undefined;
|
|
509
509
|
}
|
|
@@ -514,11 +514,11 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
514
514
|
const clientSecret = await this.quickInputService.input({
|
|
515
515
|
title: sharedTitle,
|
|
516
516
|
prompt: ( localize(
|
|
517
|
-
|
|
517
|
+
2495,
|
|
518
518
|
"(optional) Enter an existing client secret associated with the client id '{0}' or leave this field blank",
|
|
519
519
|
clientId
|
|
520
520
|
)),
|
|
521
|
-
placeHolder: ( localize(
|
|
521
|
+
placeHolder: ( localize(2496, "OAuth client secret (wer32o50f...) or leave it blank")),
|
|
522
522
|
password: true,
|
|
523
523
|
ignoreFocusLost: true
|
|
524
524
|
});
|
|
@@ -92,7 +92,7 @@ let RemoteExtensionManagementCLI = class RemoteExtensionManagementCLI extends Ex
|
|
|
92
92
|
if (!this._extensionManifestPropertiesService.canExecuteOnWorkspace(manifest)
|
|
93
93
|
&& !(isWeb && this._extensionManifestPropertiesService.canExecuteOnWeb(manifest))) {
|
|
94
94
|
this.logger.info(( localize(
|
|
95
|
-
|
|
95
|
+
2497,
|
|
96
96
|
"Cannot install the '{0}' extension because it is declared to not run in this setup.",
|
|
97
97
|
getExtensionId(manifest.publisher, manifest.name)
|
|
98
98
|
)));
|
|
@@ -9,12 +9,12 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
9
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
10
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
11
11
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
12
|
-
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
12
|
+
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
13
13
|
import { IPromptsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service";
|
|
14
|
-
import { IChatRelatedFileProviderMetadata } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
|
|
15
|
-
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service";
|
|
16
|
-
import { IChatContentInlineReference, IChatContentReference, IChatTask, IChatTaskSerialized, IChatWarningMessage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
17
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
14
|
+
import { IChatRelatedFileProviderMetadata } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
|
|
15
|
+
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service";
|
|
16
|
+
import { IChatContentInlineReference, IChatContentReference, IChatTask, IChatTaskSerialized, IChatWarningMessage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
17
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
18
18
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
19
19
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
20
20
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
@@ -59,7 +59,7 @@ export declare class MainThreadChatAgents2 extends Disposable implements MainThr
|
|
|
59
59
|
private readonly _unresolvedAnchors;
|
|
60
60
|
constructor(extHostContext: IExtHostContext, _chatAgentService: IChatAgentService, _chatSessionService: IChatSessionsService, _chatService: IChatService, _chatEditingService: IChatEditingService, _languageFeaturesService: ILanguageFeaturesService, _chatWidgetService: IChatWidgetService, _instantiationService: IInstantiationService, _logService: ILogService, _extensionService: IExtensionService, _uriIdentityService: IUriIdentityService, _promptsService: IPromptsService);
|
|
61
61
|
$unregisterAgent(handle: number): void;
|
|
62
|
-
$transferActiveChatSession(toWorkspace: UriComponents): void
|
|
62
|
+
$transferActiveChatSession(toWorkspace: UriComponents): Promise<void>;
|
|
63
63
|
$registerAgent(handle: number, extension: ExtensionIdentifier, id: string, metadata: IExtensionChatAgentMetadata, dynamicProps: IDynamicChatAgentProps | undefined): Promise<void>;
|
|
64
64
|
$updateAgent(handle: number, metadataUpdate: IExtensionChatAgentMetadata): Promise<void>;
|
|
65
65
|
$handleProgressChunk(requestId: string, chunks: (IChatProgressDto | [
|
|
@@ -17,19 +17,19 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
17
17
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
18
18
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
19
19
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
20
|
-
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
20
|
+
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
21
21
|
import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service';
|
|
22
|
-
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
23
|
-
import { ChatRequestAgentPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
24
|
-
import { ChatRequestParser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatRequestParser';
|
|
25
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
22
|
+
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
23
|
+
import { ChatRequestAgentPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
|
|
24
|
+
import { ChatRequestParser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatRequestParser';
|
|
25
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
26
26
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
27
27
|
import { ChatModeKind, ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
28
28
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
29
29
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
30
30
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
31
31
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
32
|
-
import { addDynamicVariableActionId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/
|
|
32
|
+
import { addDynamicVariableActionId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant';
|
|
33
33
|
|
|
34
34
|
class MainThreadChatTask {
|
|
35
35
|
get onDidAddProgress() { return this._onDidAddProgress.event; }
|
|
@@ -87,7 +87,9 @@ let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
|
87
87
|
this._unresolvedAnchors = ( new Map());
|
|
88
88
|
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostChatAgents2));
|
|
89
89
|
this._register(this._chatService.onDidDisposeSession(e => {
|
|
90
|
-
|
|
90
|
+
for (const resource of e.sessionResource) {
|
|
91
|
+
this._proxy.$releaseSession(resource);
|
|
92
|
+
}
|
|
91
93
|
}));
|
|
92
94
|
this._register(this._chatService.onDidPerformUserAction(e => {
|
|
93
95
|
if (typeof e.agentId === 'string') {
|
|
@@ -108,15 +110,14 @@ let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
|
108
110
|
$unregisterAgent(handle) {
|
|
109
111
|
this._agents.deleteAndDispose(handle);
|
|
110
112
|
}
|
|
111
|
-
$transferActiveChatSession(toWorkspace) {
|
|
113
|
+
async $transferActiveChatSession(toWorkspace) {
|
|
112
114
|
const widget = this._chatWidgetService.lastFocusedWidget;
|
|
113
115
|
const model = widget?.viewModel?.model;
|
|
114
116
|
if (!model) {
|
|
115
117
|
this._logService.error(`MainThreadChat#$transferActiveChatSession: No active chat session found`);
|
|
116
118
|
return;
|
|
117
119
|
}
|
|
118
|
-
|
|
119
|
-
this._chatService.transferChatSession({ sessionId: model.sessionId, inputState: model.inputModel.state.get(), location }, URI.revive(toWorkspace));
|
|
120
|
+
await this._chatService.transferChatSession(model.sessionResource, URI.revive(toWorkspace));
|
|
120
121
|
}
|
|
121
122
|
async $registerAgent(handle, extension, id, metadata, dynamicProps) {
|
|
122
123
|
await this._extensionService.whenInstalledExtensionsRegistered();
|
|
@@ -160,6 +161,9 @@ let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
|
160
161
|
return this._proxy.$provideChatSummary(handle, history, token);
|
|
161
162
|
},
|
|
162
163
|
};
|
|
164
|
+
if (chatSessionRegistration?.alternativeIds?.includes(id)) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
163
167
|
let disposable;
|
|
164
168
|
if (!staticAgentRegistration && dynamicProps) {
|
|
165
169
|
const extensionDescription = this._extensionService.extensions.find(e => ExtensionIdentifier.equals(e.identifier, extension));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { ICodeMapperService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatCodeMapperService.service";
|
|
2
|
+
import { ICodeMapperService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatCodeMapperService.service";
|
|
3
3
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
4
|
import { ICodeMapperProgressDto, MainThreadCodeMapperShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
5
5
|
export declare class MainThreadChatCodemapper extends Disposable implements MainThreadCodeMapperShape {
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
5
5
|
import { TextEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
6
|
-
import { ICodeMapperService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatCodeMapperService.service';
|
|
6
|
+
import { ICodeMapperService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatCodeMapperService.service';
|
|
7
7
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
8
8
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
9
9
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
3
|
-
import { IChatContextItem, IChatContextSupport } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContext";
|
|
3
|
+
import { IChatContextItem, IChatContextSupport } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/contextContrib/chatContext";
|
|
4
4
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
5
|
import { IDocumentFilterDto, MainThreadChatContextShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
|
-
import { IChatContextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextService.service";
|
|
6
|
+
import { IChatContextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.service";
|
|
7
7
|
export declare class MainThreadChatContext extends Disposable implements MainThreadChatContextShape {
|
|
8
8
|
private readonly _chatContextService;
|
|
9
9
|
private readonly _proxy;
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
5
5
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
6
|
-
import { IChatContextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextService.service';
|
|
6
|
+
import { IChatContextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.service';
|
|
7
7
|
|
|
8
8
|
let MainThreadChatContext = class MainThreadChatContext extends Disposable {
|
|
9
9
|
constructor(extHostContext, _chatContextService) {
|
|
@@ -6,9 +6,9 @@ import { URI, UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/
|
|
|
6
6
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
7
7
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
8
8
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
9
|
-
import { IChatAgentRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
10
|
-
import { IChatContentInlineReference, IChatProgress } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
11
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
9
|
+
import { IChatAgentRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
|
|
10
|
+
import { IChatContentInlineReference, IChatProgress } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
11
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
12
12
|
import { IChatSession, IChatSessionHistoryItem, IChatSessionProviderOptionItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
|
|
13
13
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
14
14
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
@@ -81,7 +81,6 @@ export declare class MainThreadChatSessions extends Disposable implements MainTh
|
|
|
81
81
|
$onDidCommitChatSessionItem(handle: number, originalComponents: UriComponents, modifiedCompoennts: UriComponents): Promise<void>;
|
|
82
82
|
private _provideChatSessionItems;
|
|
83
83
|
private handleSessionModelOverrides;
|
|
84
|
-
private _provideNewChatSessionItem;
|
|
85
84
|
private _provideChatSessionContent;
|
|
86
85
|
$unregisterChatSessionItemProvider(handle: number): void;
|
|
87
86
|
$registerChatSessionContentProvider(handle: number, chatSessionScheme: string): void;
|
|
@@ -92,6 +91,8 @@ export declare class MainThreadChatSessions extends Disposable implements MainTh
|
|
|
92
91
|
])[]): Promise<void>;
|
|
93
92
|
$handleProgressComplete(handle: number, sessionResource: UriComponents, requestId: string): void;
|
|
94
93
|
$handleAnchorResolve(handle: number, sesssionResource: UriComponents, requestId: string, requestHandle: string, anchor: Dto<IChatContentInlineReference>): void;
|
|
94
|
+
$onDidChangeChatSessionProviderOptions(handle: number): void;
|
|
95
|
+
private _refreshProviderOptions;
|
|
95
96
|
dispose(): void;
|
|
96
97
|
private _reviveTooltip;
|
|
97
98
|
/**
|