@codingame/monaco-vscode-api 17.1.0 → 17.1.1
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 +8 -8
- package/services.js +3 -3
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +6 -5
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +3 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +14 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "17.1.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "17.1.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "17.1.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "17.1.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "17.1.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "17.1.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "17.1.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "17.1.1",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "17.1.1",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "17.1.1",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "17.1.1",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "17.1.1",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "17.1.1",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "17.1.1",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
26
26
|
"jschardet": "3.1.4",
|
|
27
27
|
"marked": "14.0.0"
|
package/services.js
CHANGED
|
@@ -182,10 +182,10 @@ export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
182
182
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
183
183
|
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
184
184
|
|
|
185
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.100.
|
|
186
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.100.
|
|
185
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.100.2-71b00727-b59a-4f1f-85a0-4d406e3dda87") {
|
|
186
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.100.2-71b00727-b59a-4f1f-85a0-4d406e3dda87"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
187
187
|
}
|
|
188
|
-
window.monacoVscodeApiBuildId = "1.100.
|
|
188
|
+
window.monacoVscodeApiBuildId = "1.100.2-71b00727-b59a-4f1f-85a0-4d406e3dda87";
|
|
189
189
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
190
190
|
checkServicesNotInitialized();
|
|
191
191
|
injectCss(container);
|
package/vscode/product.json.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var productJson = {nameShort:"Code - OSS",nameLong:"Code - OSS",applicationName:"code-oss",dataFolderName:".vscode-oss",win32MutexName:"vscodeoss",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",tunnelApplicationName:"code-tunnel-oss",win32DirName:"Microsoft Code OSS",win32NameVersion:"Microsoft Code OSS",win32RegValueName:"CodeOSS",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"Microsoft.CodeOSS",win32ShellNameShort:"C&ode - OSS",win32TunnelServiceMutex:"vscodeoss-tunnelservice",win32TunnelMutex:"vscodeoss-tunnel",darwinBundleIdentifier:"com.visualstudio.code.oss",darwinProfileUUID:"47827DD9-4734-49A0-AF80-7E19B11495CC",darwinProfilePayloadUUID:"CF808BE7-53F3-46C6-A7E2-7EDB98A5E959",linuxIconName:"code-oss",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",nodejsRepository:"https://nodejs.org",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.100.
|
|
1
|
+
var productJson = {nameShort:"Code - OSS",nameLong:"Code - OSS",applicationName:"code-oss",dataFolderName:".vscode-oss",win32MutexName:"vscodeoss",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",tunnelApplicationName:"code-tunnel-oss",win32DirName:"Microsoft Code OSS",win32NameVersion:"Microsoft Code OSS",win32RegValueName:"CodeOSS",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"Microsoft.CodeOSS",win32ShellNameShort:"C&ode - OSS",win32TunnelServiceMutex:"vscodeoss-tunnelservice",win32TunnelMutex:"vscodeoss-tunnel",darwinBundleIdentifier:"com.visualstudio.code.oss",darwinProfileUUID:"47827DD9-4734-49A0-AF80-7E19B11495CC",darwinProfilePayloadUUID:"CF808BE7-53F3-46C6-A7E2-7EDB98A5E959",linuxIconName:"code-oss",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",nodejsRepository:"https://nodejs.org",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.100.1",sha256:"8c2218df3422d45b95e96d9d28cdc4aa4426a2799aaaedd862d3f60ecab03844",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.10",sha256:"7361748ddf9fd09d8a2ed1f2a2d7376a2cf9aae708692820b799708385c38e08",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}]};
|
|
2
2
|
|
|
3
3
|
export { productJson as default };
|
|
@@ -4,9 +4,9 @@ import productJson from '../../../../../product.json.js';
|
|
|
4
4
|
var product = {
|
|
5
5
|
...productJson,
|
|
6
6
|
quality: 'stable',
|
|
7
|
-
version: '1.100.
|
|
8
|
-
commit: '
|
|
9
|
-
date: '2025-05-
|
|
7
|
+
version: '1.100.2',
|
|
8
|
+
commit: '848b80aeb52026648a8ff9f7c45a9b0a80641e2e',
|
|
9
|
+
date: '2025-05-20T09:24:53.245Z',
|
|
10
10
|
...(globalThis._VSCODE_PRODUCT_JSON ?? {})
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -8,7 +8,7 @@ import { Iterable } from '../../../base/common/iterator.js';
|
|
|
8
8
|
import { toDisposable, Disposable, DisposableMap, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
9
9
|
import { revive } from '../../../base/common/marshalling.js';
|
|
10
10
|
import { StopWatch } from '../../../base/common/stopwatch.js';
|
|
11
|
-
import { assertType } from '../../../base/common/types.js';
|
|
11
|
+
import { isDefined, assertType } from '../../../base/common/types.js';
|
|
12
12
|
import { URI } from '../../../base/common/uri.js';
|
|
13
13
|
import { generateUuid } from '../../../base/common/uuid.js';
|
|
14
14
|
import { ExtensionIdentifier } from '../../../platform/extensions/common/extensions.js';
|
|
@@ -332,7 +332,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
332
332
|
}
|
|
333
333
|
const { request, location, history } = await this._createRequest(requestDto, context, detector.extension);
|
|
334
334
|
const model = await this.getModelForRequest(request, detector.extension);
|
|
335
|
-
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(detector.extension), this.getToolsForRequest(detector.extension, request), this.getTools2ForRequest(detector.extension, request), detector.extension);
|
|
335
|
+
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(detector.extension), this.getToolsForRequest(detector.extension, request), this.getTools2ForRequest(detector.extension, request), detector.extension, this._logService);
|
|
336
336
|
return detector.provider.provideParticipantDetection(extRequest, { history }, { participants: options.participants, location: ChatLocation.to(options.location) }, token);
|
|
337
337
|
}
|
|
338
338
|
async _createRequest(requestDto, context, extension) {
|
|
@@ -398,7 +398,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
398
398
|
sessionDisposables
|
|
399
399
|
));
|
|
400
400
|
const model = await this.getModelForRequest(request, agent.extension);
|
|
401
|
-
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(agent.extension), this.getToolsForRequest(agent.extension, request), this.getTools2ForRequest(agent.extension, request), agent.extension);
|
|
401
|
+
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(agent.extension), this.getToolsForRequest(agent.extension, request), this.getTools2ForRequest(agent.extension, request), agent.extension, this._logService);
|
|
402
402
|
inFlightRequest = { requestId: requestDto.requestId, extRequest };
|
|
403
403
|
this._inFlightRequests.add(inFlightRequest);
|
|
404
404
|
const task = agent.invoke(extRequest, { history }, stream.apiObject, token);
|
|
@@ -480,8 +480,9 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
480
480
|
const varsWithoutTools = ( h.request.variables.variables
|
|
481
481
|
.filter(v => v.kind !== 'tool')
|
|
482
482
|
.map(
|
|
483
|
-
v => ChatPromptReference.to(v, this.getDiagnosticsWhenEnabled(extension))
|
|
484
|
-
))
|
|
483
|
+
v => ChatPromptReference.to(v, this.getDiagnosticsWhenEnabled(extension), this._logService)
|
|
484
|
+
))
|
|
485
|
+
.filter(isDefined);
|
|
485
486
|
const toolReferences = ( h.request.variables.variables
|
|
486
487
|
.filter(v => v.kind === 'tool')
|
|
487
488
|
.map(ChatLanguageModelToolReference.to));
|
|
@@ -38,6 +38,7 @@ import * as types from "./extHostTypes.js";
|
|
|
38
38
|
import { ChatAgentLocation } from "../../contrib/chat/common/constants.js";
|
|
39
39
|
import { AiSettingsSearchResult } from "../../services/aiSettingsSearch/common/aiSettingsSearch.js";
|
|
40
40
|
import { McpServerLaunch } from "../../contrib/mcp/common/mcpTypes.js";
|
|
41
|
+
import { ILogService } from "../../../platform/log/common/log.service.js";
|
|
41
42
|
export declare namespace Command {
|
|
42
43
|
interface ICommandsConverter {
|
|
43
44
|
fromInternal(command: extHostProtocol.ICommandDto): vscode.Command | undefined;
|
|
@@ -522,7 +523,7 @@ export declare namespace ChatAgentRequest {
|
|
|
522
523
|
function to(request: IChatAgentRequest, location2: vscode.ChatRequestEditorData | vscode.ChatRequestNotebookData | undefined, model: vscode.LanguageModelChat, diagnostics: readonly [
|
|
523
524
|
vscode.Uri,
|
|
524
525
|
readonly vscode.Diagnostic[]
|
|
525
|
-
][], toolSelection: vscode.ChatRequestToolSelection | undefined, tools: Map<string, boolean>, extension: IRelaxedExtensionDescription): vscode.ChatRequest;
|
|
526
|
+
][], toolSelection: vscode.ChatRequestToolSelection | undefined, tools: Map<string, boolean>, extension: IRelaxedExtensionDescription, logService: ILogService): vscode.ChatRequest;
|
|
526
527
|
}
|
|
527
528
|
export declare namespace ChatRequestDraft {
|
|
528
529
|
function to(request: IChatRequestDraft): vscode.ChatRequestDraft;
|
|
@@ -535,7 +536,7 @@ export declare namespace ChatPromptReference {
|
|
|
535
536
|
function to(variable: IChatRequestVariableEntry, diagnostics: readonly [
|
|
536
537
|
vscode.Uri,
|
|
537
538
|
readonly vscode.Diagnostic[]
|
|
538
|
-
][]): vscode.ChatPromptReference;
|
|
539
|
+
][], logService: ILogService): vscode.ChatPromptReference | undefined;
|
|
539
540
|
}
|
|
540
541
|
export declare namespace ChatLanguageModelToolReference {
|
|
541
542
|
function to(variable: IChatRequestVariableEntry): vscode.ChatLanguageModelToolReference;
|
|
@@ -2777,7 +2777,7 @@ var ChatResponsePart;
|
|
|
2777
2777
|
})(ChatResponsePart || (ChatResponsePart = {}));
|
|
2778
2778
|
var ChatAgentRequest;
|
|
2779
2779
|
(function (ChatAgentRequest) {
|
|
2780
|
-
function to(request, location2, model, diagnostics, toolSelection, tools, extension) {
|
|
2780
|
+
function to(request, location2, model, diagnostics, toolSelection, tools, extension, logService) {
|
|
2781
2781
|
const toolReferences = request.variables.variables.filter(v => v.kind === 'tool');
|
|
2782
2782
|
const variableReferences = request.variables.variables.filter(v => v.kind !== 'tool');
|
|
2783
2783
|
const requestWithAllProps = {
|
|
@@ -2787,7 +2787,9 @@ var ChatAgentRequest;
|
|
|
2787
2787
|
attempt: request.attempt ?? 0,
|
|
2788
2788
|
enableCommandDetection: request.enableCommandDetection ?? true,
|
|
2789
2789
|
isParticipantDetected: request.isParticipantDetected ?? false,
|
|
2790
|
-
references: ( variableReferences
|
|
2790
|
+
references: ( variableReferences
|
|
2791
|
+
.map(v => ChatPromptReference.to(v, diagnostics, logService)))
|
|
2792
|
+
.filter(isDefined),
|
|
2791
2793
|
toolReferences: ( toolReferences.map(ChatLanguageModelToolReference.to)),
|
|
2792
2794
|
location: ChatLocation.to(request.location),
|
|
2793
2795
|
acceptedConfirmationData: request.acceptedConfirmationData,
|
|
@@ -2850,10 +2852,18 @@ var ChatLocation;
|
|
|
2850
2852
|
})(ChatLocation || (ChatLocation = {}));
|
|
2851
2853
|
var ChatPromptReference;
|
|
2852
2854
|
(function (ChatPromptReference) {
|
|
2853
|
-
function to(variable, diagnostics) {
|
|
2855
|
+
function to(variable, diagnostics, logService) {
|
|
2854
2856
|
let value = variable.value;
|
|
2855
2857
|
if (!value) {
|
|
2856
|
-
|
|
2858
|
+
let varStr;
|
|
2859
|
+
try {
|
|
2860
|
+
varStr = JSON.stringify(variable);
|
|
2861
|
+
}
|
|
2862
|
+
catch {
|
|
2863
|
+
varStr = `kind=${variable.kind}, id=${variable.id}, name=${variable.name}`;
|
|
2864
|
+
}
|
|
2865
|
+
logService.error(`[ChatPromptReference] Ignoring invalid reference in variable: ${varStr}`);
|
|
2866
|
+
return undefined;
|
|
2857
2867
|
}
|
|
2858
2868
|
if (isUriComponents(value)) {
|
|
2859
2869
|
value = URI.revive(value);
|