@codingame/monaco-vscode-ai-service-override 11.1.1 → 12.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 +2 -1
- package/index.js +15 -1
- package/package.json +20 -7
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.d.ts +15 -0
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js +3 -1
- package/ai.js +0 -13
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
|
+
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
3
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
+
import { IAiEmbeddingVectorService } from 'vscode/vscode/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service';
|
|
5
|
+
import { IAiRelatedInformationService } from 'vscode/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service';
|
|
6
|
+
import { AiRelatedInformationService } from './vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js';
|
|
7
|
+
|
|
8
|
+
function getServiceOverride() {
|
|
9
|
+
return {
|
|
10
|
+
[IAiRelatedInformationService.toString()]: new SyncDescriptor(AiRelatedInformationService, [], true),
|
|
11
|
+
[IAiEmbeddingVectorService.toString()]: new SyncDescriptor(AiRelatedInformationService, [], true)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-ai-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - ai service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,17 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@codingame/monaco-vscode-fc985c90-0334-5b62-88bc-73e2efa0b80b-common": "12.0.0"
|
|
22
|
+
},
|
|
23
|
+
"peerDependenciesMeta": {
|
|
24
|
+
"@codingame/monaco-vscode-fc985c90-0334-5b62-88bc-73e2efa0b80b-common": {
|
|
25
|
+
"optional": true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
17
28
|
"main": "index.js",
|
|
18
29
|
"module": "index.js",
|
|
19
30
|
"types": "index.d.ts",
|
|
@@ -22,10 +33,12 @@
|
|
|
22
33
|
"default": "./index.js"
|
|
23
34
|
},
|
|
24
35
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
36
|
+
"default": "./vscode/src/*.js",
|
|
37
|
+
"types": "./vscode/src/*.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./*": {
|
|
40
|
+
"default": "./*.js",
|
|
41
|
+
"types": "./*.d.ts"
|
|
26
42
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1"
|
|
30
43
|
}
|
|
31
44
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
4
|
+
import { IAiRelatedInformationProvider, RelatedInformationType, RelatedInformationResult } from "@codingame/monaco-vscode-fc985c90-0334-5b62-88bc-73e2efa0b80b-common/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation";
|
|
5
|
+
import { IAiRelatedInformationService } from "vscode/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service";
|
|
6
|
+
export declare class AiRelatedInformationService implements IAiRelatedInformationService {
|
|
7
|
+
private readonly logService;
|
|
8
|
+
readonly _serviceBrand: undefined;
|
|
9
|
+
static readonly DEFAULT_TIMEOUT: number;
|
|
10
|
+
private readonly _providers;
|
|
11
|
+
constructor(logService: ILogService);
|
|
12
|
+
isEnabled(): boolean;
|
|
13
|
+
registerAiRelatedInformationProvider(type: RelatedInformationType, provider: IAiRelatedInformationProvider): IDisposable;
|
|
14
|
+
getRelatedInformation(query: string, types: RelatedInformationType[], token: CancellationToken): Promise<RelatedInformationResult[]>;
|
|
15
|
+
}
|
package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { createCancelablePromise, raceTimeout } from 'vscode/vscode/vs/base/common/async';
|
|
4
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
3
5
|
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
4
6
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
7
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
package/ai.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
-
import { IAiEmbeddingVectorService } from 'vscode/vscode/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service';
|
|
3
|
-
import { IAiRelatedInformationService } from 'vscode/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service';
|
|
4
|
-
import { AiRelatedInformationService } from './vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js';
|
|
5
|
-
|
|
6
|
-
function getServiceOverride() {
|
|
7
|
-
return {
|
|
8
|
-
[( IAiRelatedInformationService.toString())]: new SyncDescriptor(AiRelatedInformationService, [], true),
|
|
9
|
-
[( IAiEmbeddingVectorService.toString())]: new SyncDescriptor(AiRelatedInformationService, [], true)
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { getServiceOverride as default };
|