@codingame/monaco-vscode-chat-service-override 28.1.1 → 28.1.2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "28.1.
|
|
19
|
-
"@codingame/monaco-vscode-katex-common": "28.1.
|
|
20
|
-
"@codingame/monaco-vscode-xterm-addons-common": "28.1.
|
|
21
|
-
"@codingame/monaco-vscode-xterm-common": "28.1.
|
|
18
|
+
"@codingame/monaco-vscode-api": "28.1.2",
|
|
19
|
+
"@codingame/monaco-vscode-katex-common": "28.1.2",
|
|
20
|
+
"@codingame/monaco-vscode-xterm-addons-common": "28.1.2",
|
|
21
|
+
"@codingame/monaco-vscode-xterm-common": "28.1.2"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js
CHANGED
|
@@ -126,7 +126,7 @@ function waitForCommandRegistration(commandId) {
|
|
|
126
126
|
return Promise.resolve();
|
|
127
127
|
}
|
|
128
128
|
return ( new Promise(resolve => {
|
|
129
|
-
const timer =
|
|
129
|
+
const timer = new TimeoutTimer();
|
|
130
130
|
const listener = CommandsRegistry.onDidRegisterCommand(id => {
|
|
131
131
|
if (id === commandId) {
|
|
132
132
|
listener.dispose();
|
|
@@ -384,7 +384,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
|
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
getTextEdits(codeBlock, chatSessionResource, token) {
|
|
387
|
-
return
|
|
387
|
+
return new AsyncIterableProducer(async executor => {
|
|
388
388
|
const request = {
|
|
389
389
|
codeBlocks: [codeBlock],
|
|
390
390
|
chatSessionResource
|
|
@@ -399,10 +399,10 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
|
|
|
399
399
|
if (result?.errorMessage) {
|
|
400
400
|
executor.reject(( new Error(result.errorMessage)));
|
|
401
401
|
}
|
|
402
|
-
})
|
|
402
|
+
});
|
|
403
403
|
}
|
|
404
404
|
getNotebookEdits(codeBlock, chatSessionResource, token) {
|
|
405
|
-
return
|
|
405
|
+
return new AsyncIterableProducer(async executor => {
|
|
406
406
|
const request = {
|
|
407
407
|
codeBlocks: [codeBlock],
|
|
408
408
|
chatSessionResource,
|
|
@@ -420,7 +420,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
|
|
|
420
420
|
if (result?.errorMessage) {
|
|
421
421
|
executor.reject(( new Error(result.errorMessage)));
|
|
422
422
|
}
|
|
423
|
-
})
|
|
423
|
+
});
|
|
424
424
|
}
|
|
425
425
|
async waitForFirstElement(iterable) {
|
|
426
426
|
const iterator = iterable[Symbol.asyncIterator]();
|