@codingame/monaco-vscode-extensions-service-override 16.1.1 → 17.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/index.d.ts +1 -1
- package/index.js +2 -1
- package/package.json +28 -32
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.d.ts +14 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.js +38 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +18 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +2 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +4 -4
- 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/mainThreadLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +27 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +5 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +15 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +5 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +2 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +21 -27
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +2 -2
- 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/mainThreadQuickDiff.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +29 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.d.ts +2 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +21 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.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.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +7 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.d.ts +13 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +12 -13
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +12 -12
- 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/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IWebExtensionsScannerService, IWorkbenchExtensionEnablementService, IWo
|
|
|
15
15
|
import { IExtensionManifestPropertiesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service";
|
|
16
16
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
17
17
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
18
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
18
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
19
19
|
import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
20
20
|
import { IUserDataInitializationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userData/browser/userDataInit.service";
|
|
21
21
|
import { ExtensionService } from "./vscode/src/vs/workbench/services/extensions/browser/extensionService.js";
|
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { ExtensionManifestPropertiesService } from '@codingame/monaco-vscode-d7f
|
|
|
20
20
|
import { IExtensionManifestPropertiesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service';
|
|
21
21
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
22
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
23
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
23
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
24
24
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
25
25
|
import { IUserDataInitializationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userData/browser/userDataInit.service';
|
|
26
26
|
import { ExtensionsProposedApi } from './vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js';
|
|
@@ -127,6 +127,7 @@ import './vscode/src/vs/workbench/api/browser/mainThreadShare.js';
|
|
|
127
127
|
import './vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js';
|
|
128
128
|
import './vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js';
|
|
129
129
|
import './vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js';
|
|
130
|
+
import './vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.js';
|
|
130
131
|
import './vscode/src/vs/workbench/api/browser/mainThreadMcp.js';
|
|
131
132
|
import './vscode/src/vs/workbench/api/browser/mainThreadChatStatus.js';
|
|
132
133
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,37 +15,33 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-
|
|
36
|
-
"@codingame/monaco-vscode-
|
|
37
|
-
"@codingame/monaco-vscode-
|
|
38
|
-
"@codingame/monaco-vscode-
|
|
39
|
-
"@codingame/monaco-vscode-
|
|
40
|
-
"@codingame/monaco-vscode-
|
|
41
|
-
"@codingame/monaco-vscode-
|
|
42
|
-
"@codingame/monaco-vscode-
|
|
43
|
-
"@codingame/monaco-vscode-
|
|
44
|
-
"@codingame/monaco-vscode-
|
|
45
|
-
"@codingame/monaco-vscode-ec21d4de-4d65-574c-8715-bb1a6bbad376-common": "16.1.1",
|
|
46
|
-
"@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "16.1.1",
|
|
47
|
-
"@codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common": "16.1.1",
|
|
48
|
-
"@codingame/monaco-vscode-files-service-override": "16.1.1"
|
|
18
|
+
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "17.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "17.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "17.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "17.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common": "17.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "17.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "17.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-4a3ac544-9a61-534c-88df-756262793ef7-common": "17.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "17.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "17.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "17.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "17.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "17.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-api": "17.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common": "17.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common": "17.0.0",
|
|
34
|
+
"@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "17.0.0",
|
|
35
|
+
"@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": "17.0.0",
|
|
36
|
+
"@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common": "17.0.0",
|
|
37
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "17.0.0",
|
|
38
|
+
"@codingame/monaco-vscode-e67a0dae-5b2c-54e6-8d61-90102c78362d-common": "17.0.0",
|
|
39
|
+
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "17.0.0",
|
|
40
|
+
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "17.0.0",
|
|
41
|
+
"@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "17.0.0",
|
|
42
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "17.0.0",
|
|
43
|
+
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "17.0.0",
|
|
44
|
+
"@codingame/monaco-vscode-files-service-override": "17.0.0"
|
|
49
45
|
},
|
|
50
46
|
"main": "index.js",
|
|
51
47
|
"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(1787, "Extension '{0}' not found.", id));
|
|
16
16
|
const useId = ( localize(
|
|
17
|
-
|
|
17
|
+
1788,
|
|
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(1789, "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(1790, "Installing extensions on {0}...", this.location)) : ( localize(1791, "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(1792, "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(1793, "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
|
+
1794,
|
|
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(1795, "No extension to update")));
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
this.logger.info(( localize(
|
|
149
|
-
|
|
149
|
+
1796,
|
|
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
|
+
1797,
|
|
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
|
+
1798,
|
|
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
|
+
1799,
|
|
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(1800, "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
|
+
1800,
|
|
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
|
+
1801,
|
|
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(1802, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(1803, "Installing builtin extension '{0}'...", id)));
|
|
241
241
|
}
|
|
242
242
|
else {
|
|
243
|
-
this.logger.info(version ? ( localize(
|
|
243
|
+
this.logger.info(version ? ( localize(1804, "Installing extension '{0}' v{1}...", id, version)) : ( localize(1805, "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
|
+
1806,
|
|
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
|
+
1807,
|
|
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(1808, "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(1809, "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
|
+
1810,
|
|
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
|
+
1811,
|
|
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
|
+
1812,
|
|
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(1813, "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
|
+
1814,
|
|
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(1815, "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(1816, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(1817, "Extension '{0}' is not installed.", id));
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
ExtensionManagementCLI = ( __decorate([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { MainThreadAiRelatedInformationShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
3
|
import { RelatedInformationType } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTypes";
|
|
4
|
-
import { RelatedInformationResult } from "@codingame/monaco-vscode-
|
|
4
|
+
import { RelatedInformationResult } from "@codingame/monaco-vscode-quickaccess-service-override/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation";
|
|
5
5
|
import { IAiRelatedInformationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service";
|
|
6
6
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
7
|
export declare class MainThreadAiRelatedInformation extends Disposable implements MainThreadAiRelatedInformationShape {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { AiSettingsSearchResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch";
|
|
4
|
+
import { IAiSettingsSearchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service";
|
|
5
|
+
import { MainThreadAiSettingsSearchShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
|
+
export declare class MainThreadAiSettingsSearch extends Disposable implements MainThreadAiSettingsSearchShape {
|
|
7
|
+
private readonly _settingsSearchService;
|
|
8
|
+
private readonly _proxy;
|
|
9
|
+
private readonly _registrations;
|
|
10
|
+
constructor(context: IExtHostContext, _settingsSearchService: IAiSettingsSearchService);
|
|
11
|
+
$registerAiSettingsSearchProvider(handle: number): void;
|
|
12
|
+
$unregisterAiSettingsSearchProvider(handle: number): void;
|
|
13
|
+
$handleSearchResult(handle: number, result: AiSettingsSearchResult): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
5
|
+
import { IAiSettingsSearchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service';
|
|
6
|
+
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
|
+
|
|
8
|
+
let MainThreadAiSettingsSearch = class MainThreadAiSettingsSearch extends Disposable {
|
|
9
|
+
constructor(context, _settingsSearchService) {
|
|
10
|
+
super();
|
|
11
|
+
this._settingsSearchService = _settingsSearchService;
|
|
12
|
+
this._registrations = this._register(( new DisposableMap()));
|
|
13
|
+
this._proxy = ( context.getProxy(ExtHostContext.ExtHostAiSettingsSearch));
|
|
14
|
+
}
|
|
15
|
+
$registerAiSettingsSearchProvider(handle) {
|
|
16
|
+
const provider = {
|
|
17
|
+
searchSettings: (query, option, token) => {
|
|
18
|
+
return this._proxy.$startSearch(handle, query, option, token);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
this._registrations.set(handle, this._settingsSearchService.registerSettingsSearchProvider(provider));
|
|
22
|
+
}
|
|
23
|
+
$unregisterAiSettingsSearchProvider(handle) {
|
|
24
|
+
this._registrations.deleteAndDispose(handle);
|
|
25
|
+
}
|
|
26
|
+
$handleSearchResult(handle, result) {
|
|
27
|
+
if (!( this._registrations.has(handle))) {
|
|
28
|
+
throw ( new Error(`No AI settings search provider found`));
|
|
29
|
+
}
|
|
30
|
+
this._settingsSearchService.handleSearchResult(result);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
MainThreadAiSettingsSearch = __decorate([
|
|
34
|
+
extHostNamedCustomer(MainContext.MainThreadAiSettingsSearch),
|
|
35
|
+
( __param(1, IAiSettingsSearchService))
|
|
36
|
+
], MainThreadAiSettingsSearch);
|
|
37
|
+
|
|
38
|
+
export { MainThreadAiSettingsSearch };
|
|
@@ -39,7 +39,7 @@ class MainThreadAuthenticationProvider extends Disposable {
|
|
|
39
39
|
}
|
|
40
40
|
async removeSession(sessionId) {
|
|
41
41
|
await this._proxy.$removeSession(this.id, sessionId);
|
|
42
|
-
this.notificationService.info(( localize(
|
|
42
|
+
this.notificationService.info(( localize(2381, "Successfully signed out.")));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
let MainThreadAuthentication = class MainThreadAuthentication extends Disposable {
|
|
@@ -106,7 +106,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
106
106
|
let message;
|
|
107
107
|
if (provider.id.startsWith(INTERNAL_AUTH_PROVIDER_PREFIX)) {
|
|
108
108
|
message = ( localize(
|
|
109
|
-
|
|
109
|
+
2382,
|
|
110
110
|
"The extension '{0}' wants to access the language models provided by {1}.",
|
|
111
111
|
extensionName,
|
|
112
112
|
provider.label
|
|
@@ -115,13 +115,13 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
115
115
|
else {
|
|
116
116
|
message = recreatingSession
|
|
117
117
|
? ( localize(
|
|
118
|
-
|
|
118
|
+
2383,
|
|
119
119
|
"The extension '{0}' wants you to sign in again using {1}.",
|
|
120
120
|
extensionName,
|
|
121
121
|
provider.label
|
|
122
122
|
))
|
|
123
123
|
: ( localize(
|
|
124
|
-
|
|
124
|
+
2384,
|
|
125
125
|
"The extension '{0}' wants to sign in using {1}.",
|
|
126
126
|
extensionName,
|
|
127
127
|
provider.label
|
|
@@ -129,7 +129,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
129
129
|
}
|
|
130
130
|
const buttons = [
|
|
131
131
|
{
|
|
132
|
-
label: ( localize(
|
|
132
|
+
label: ( localize(2385, "&&Allow")),
|
|
133
133
|
run() {
|
|
134
134
|
return true;
|
|
135
135
|
},
|
|
@@ -137,7 +137,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
137
137
|
];
|
|
138
138
|
if (options?.learnMore) {
|
|
139
139
|
buttons.push({
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(2386, "Learn more")),
|
|
141
141
|
run: async () => {
|
|
142
142
|
const result = this.loginPrompt(provider, extensionName, recreatingSession, options);
|
|
143
143
|
await this.openerService.open(URI.revive(options.learnMore), { allowCommands: true });
|
|
@@ -156,9 +156,9 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
156
156
|
}
|
|
157
157
|
async continueWithIncorrectAccountPrompt(chosenAccountLabel, requestedAccountLabel) {
|
|
158
158
|
const result = await this.dialogService.prompt({
|
|
159
|
-
message: ( localize(
|
|
159
|
+
message: ( localize(2387, "Incorrect account detected")),
|
|
160
160
|
detail: ( localize(
|
|
161
|
-
|
|
161
|
+
2388,
|
|
162
162
|
"The chosen account, {0}, does not match the requested account, {1}.",
|
|
163
163
|
chosenAccountLabel,
|
|
164
164
|
requestedAccountLabel
|
|
@@ -167,11 +167,11 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
167
167
|
cancelButton: true,
|
|
168
168
|
buttons: [
|
|
169
169
|
{
|
|
170
|
-
label: ( localize(
|
|
170
|
+
label: ( localize(2389, 'Keep {0}', chosenAccountLabel)),
|
|
171
171
|
run: () => chosenAccountLabel
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
label: ( localize(
|
|
174
|
+
label: ( localize(2390, 'Login with {0}', requestedAccountLabel)),
|
|
175
175
|
run: () => requestedAccountLabel
|
|
176
176
|
}
|
|
177
177
|
],
|
|
@@ -7,7 +7,7 @@ import { IBulkEditService } from '@codingame/monaco-vscode-api/vscode/vs/editor/
|
|
|
7
7
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
8
8
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
9
9
|
import { MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
10
|
-
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-
|
|
10
|
+
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
11
11
|
import { CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
12
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
13
13
|
|
|
@@ -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
|
+
2391,
|
|
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
|
)));
|
|
@@ -7,6 +7,7 @@ import { ILanguageFeaturesService } from "@codingame/monaco-vscode-api/vscode/vs
|
|
|
7
7
|
import { ExtensionIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions";
|
|
8
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
|
+
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
10
11
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
11
12
|
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
12
13
|
import { IChatRelatedFileProviderMetadata } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
|
|
@@ -39,6 +40,7 @@ export declare class MainThreadChatAgents2 extends Disposable implements MainThr
|
|
|
39
40
|
private readonly _instantiationService;
|
|
40
41
|
private readonly _logService;
|
|
41
42
|
private readonly _extensionService;
|
|
43
|
+
private readonly _uriIdentityService;
|
|
42
44
|
private readonly _agents;
|
|
43
45
|
private readonly _agentCompletionProviders;
|
|
44
46
|
private readonly _agentIdsToCompletionProviders;
|
|
@@ -49,7 +51,7 @@ export declare class MainThreadChatAgents2 extends Disposable implements MainThr
|
|
|
49
51
|
private _responsePartHandlePool;
|
|
50
52
|
private readonly _activeTasks;
|
|
51
53
|
private readonly _unresolvedAnchors;
|
|
52
|
-
constructor(extHostContext: IExtHostContext, _chatAgentService: IChatAgentService, _chatService: IChatService, _chatEditingService: IChatEditingService, _languageFeaturesService: ILanguageFeaturesService, _chatWidgetService: IChatWidgetService, _instantiationService: IInstantiationService, _logService: ILogService, _extensionService: IExtensionService);
|
|
54
|
+
constructor(extHostContext: IExtHostContext, _chatAgentService: IChatAgentService, _chatService: IChatService, _chatEditingService: IChatEditingService, _languageFeaturesService: ILanguageFeaturesService, _chatWidgetService: IChatWidgetService, _instantiationService: IInstantiationService, _logService: ILogService, _extensionService: IExtensionService, _uriIdentityService: IUriIdentityService);
|
|
53
55
|
$unregisterAgent(handle: number): void;
|
|
54
56
|
$transferActiveChatSession(toWorkspace: UriComponents): void;
|
|
55
57
|
$registerAgent(handle: number, extension: ExtensionIdentifier, id: string, metadata: IExtensionChatAgentMetadata, dynamicProps: IDynamicChatAgentProps | undefined): Promise<void>;
|
|
@@ -14,19 +14,20 @@ import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
14
14
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
15
15
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
16
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
17
|
+
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
17
18
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
18
|
-
import { ChatInputPart } from '@codingame/monaco-vscode-
|
|
19
|
+
import { ChatInputPart } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatInputPart';
|
|
19
20
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
20
21
|
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
21
|
-
import { ChatRequestAgentPart } from '@codingame/monaco-vscode-
|
|
22
|
-
import { ChatRequestParser } from '@codingame/monaco-vscode-
|
|
22
|
+
import { ChatRequestAgentPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
23
|
+
import { ChatRequestParser } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser';
|
|
23
24
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
25
|
+
import { ChatMode, ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
24
26
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
25
27
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
26
28
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
27
29
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
28
30
|
import { addDynamicVariableActionId } from '@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant';
|
|
29
|
-
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
30
31
|
|
|
31
32
|
class MainThreadChatTask {
|
|
32
33
|
get onDidAddProgress() { return this._onDidAddProgress.event; }
|
|
@@ -52,7 +53,7 @@ class MainThreadChatTask {
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
55
|
-
constructor(extHostContext, _chatAgentService, _chatService, _chatEditingService, _languageFeaturesService, _chatWidgetService, _instantiationService, _logService, _extensionService) {
|
|
56
|
+
constructor(extHostContext, _chatAgentService, _chatService, _chatEditingService, _languageFeaturesService, _chatWidgetService, _instantiationService, _logService, _extensionService, _uriIdentityService) {
|
|
56
57
|
super();
|
|
57
58
|
this._chatAgentService = _chatAgentService;
|
|
58
59
|
this._chatService = _chatService;
|
|
@@ -62,6 +63,7 @@ let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
|
62
63
|
this._instantiationService = _instantiationService;
|
|
63
64
|
this._logService = _logService;
|
|
64
65
|
this._extensionService = _extensionService;
|
|
66
|
+
this._uriIdentityService = _uriIdentityService;
|
|
65
67
|
this._agents = this._register(( new DisposableMap()));
|
|
66
68
|
this._agentCompletionProviders = this._register(( new DisposableMap()));
|
|
67
69
|
this._agentIdsToCompletionProviders = this._register(( new DisposableMap()));
|
|
@@ -159,6 +161,7 @@ let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
|
159
161
|
slashCommands: [],
|
|
160
162
|
disambiguation: [],
|
|
161
163
|
locations: [ChatAgentLocation.Panel],
|
|
164
|
+
modes: [ChatMode.Ask]
|
|
162
165
|
}, impl);
|
|
163
166
|
}
|
|
164
167
|
else {
|
|
@@ -182,7 +185,14 @@ let MainThreadChatAgents2 = class MainThreadChatAgents2 extends Disposable {
|
|
|
182
185
|
this._chatAgentService.updateAgent(data.id, revive(metadataUpdate));
|
|
183
186
|
}
|
|
184
187
|
async $handleProgressChunk(requestId, progress, responsePartHandle) {
|
|
185
|
-
const revivedProgress = progress.kind === 'notebookEdit'
|
|
188
|
+
const revivedProgress = progress.kind === 'notebookEdit'
|
|
189
|
+
? ChatNotebookEdit.fromChatEdit(revive(progress))
|
|
190
|
+
: revive(progress);
|
|
191
|
+
if (revivedProgress.kind === 'notebookEdit'
|
|
192
|
+
|| revivedProgress.kind === 'textEdit'
|
|
193
|
+
|| revivedProgress.kind === 'codeblockUri') {
|
|
194
|
+
revivedProgress.uri = this._uriIdentityService.asCanonicalUri(revivedProgress.uri);
|
|
195
|
+
}
|
|
186
196
|
if (revivedProgress.kind === 'progressTask') {
|
|
187
197
|
const handle = ++this._responsePartHandlePool;
|
|
188
198
|
const responsePartId = `${requestId}_${handle}`;
|
|
@@ -319,7 +329,8 @@ MainThreadChatAgents2 = __decorate([
|
|
|
319
329
|
( __param(5, IChatWidgetService)),
|
|
320
330
|
( __param(6, IInstantiationService)),
|
|
321
331
|
( __param(7, ILogService)),
|
|
322
|
-
( __param(8, IExtensionService))
|
|
332
|
+
( __param(8, IExtensionService)),
|
|
333
|
+
( __param(9, IUriIdentityService))
|
|
323
334
|
], MainThreadChatAgents2);
|
|
324
335
|
function computeCompletionRanges(model, position, reg) {
|
|
325
336
|
const varWord = getWordAtText(position.column, reg, model.getLineContent(position.lineNumber), 0);
|
|
@@ -29,6 +29,8 @@ let MainThreadChatCodemapper = class MainThreadChatCodemapper extends Disposable
|
|
|
29
29
|
requestId,
|
|
30
30
|
codeBlocks: uiRequest.codeBlocks,
|
|
31
31
|
chatRequestId: uiRequest.chatRequestId,
|
|
32
|
+
chatRequestModel: uiRequest.chatRequestModel,
|
|
33
|
+
chatSessionId: uiRequest.chatSessionId,
|
|
32
34
|
location: uiRequest.location
|
|
33
35
|
};
|
|
34
36
|
try {
|