@codingame/monaco-vscode-ai-service-override 37.2.0 → 37.3.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.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
3
3
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
+
import { AICustomizationItemsModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel';
|
|
5
|
+
import { IAICustomizationItemsModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.service';
|
|
4
6
|
import { IAiEmbeddingVectorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service';
|
|
5
7
|
import { IAiRelatedInformationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service';
|
|
6
8
|
import { AiRelatedInformationService } from './vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js';
|
|
@@ -11,7 +13,8 @@ function getServiceOverride() {
|
|
|
11
13
|
return {
|
|
12
14
|
[IAiRelatedInformationService.toString()]: new SyncDescriptor(AiRelatedInformationService, [], true),
|
|
13
15
|
[IAiEmbeddingVectorService.toString()]: new SyncDescriptor(AiRelatedInformationService, [], true),
|
|
14
|
-
[IAiSettingsSearchService.toString()]: new SyncDescriptor(AiSettingsSearchService, [], true)
|
|
16
|
+
[IAiSettingsSearchService.toString()]: new SyncDescriptor(AiSettingsSearchService, [], true),
|
|
17
|
+
[IAICustomizationItemsModel.toString()]: new SyncDescriptor(AICustomizationItemsModel, [], true)
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-ai-service-override",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - ai service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js
CHANGED
|
@@ -53,7 +53,7 @@ let AiRelatedInformationService = class AiRelatedInformationService {
|
|
|
53
53
|
throw ( new Error("No related information providers registered for the given types"));
|
|
54
54
|
}
|
|
55
55
|
const stopwatch = StopWatch.create();
|
|
56
|
-
const cancellablePromises =
|
|
56
|
+
const cancellablePromises = providers.map(provider => {
|
|
57
57
|
return createCancelablePromise(async t => {
|
|
58
58
|
try {
|
|
59
59
|
const result = await provider.provideAiRelatedInformation(query, t);
|
|
@@ -61,7 +61,7 @@ let AiRelatedInformationService = class AiRelatedInformationService {
|
|
|
61
61
|
} catch (e) {}
|
|
62
62
|
return [];
|
|
63
63
|
});
|
|
64
|
-
})
|
|
64
|
+
});
|
|
65
65
|
try {
|
|
66
66
|
const results = await raceTimeout(
|
|
67
67
|
Promise.allSettled(cancellablePromises),
|