@codingame/monaco-vscode-chat-service-override 19.0.1 → 19.1.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/package.json +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "19.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,36 +15,36 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-07eaa805-9dea-5ec6-a422-a4f04872424d-common": "19.0
|
|
19
|
-
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "19.0
|
|
20
|
-
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "19.0
|
|
21
|
-
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.0
|
|
22
|
-
"@codingame/monaco-vscode-33de3d75-8b1a-53f0-9e27-0c71c327e1a1-common": "19.0
|
|
23
|
-
"@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common": "19.0
|
|
24
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "19.0
|
|
25
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0
|
|
26
|
-
"@codingame/monaco-vscode-64322fa2-7385-5f46-935b-8f243d98004b-common": "19.0
|
|
27
|
-
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "19.0
|
|
28
|
-
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "19.0
|
|
29
|
-
"@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common": "19.0
|
|
30
|
-
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "19.0
|
|
31
|
-
"@codingame/monaco-vscode-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common": "19.0
|
|
32
|
-
"@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common": "19.0
|
|
33
|
-
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.0
|
|
34
|
-
"@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common": "19.0
|
|
35
|
-
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "19.0
|
|
36
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.0
|
|
37
|
-
"@codingame/monaco-vscode-api": "19.0
|
|
38
|
-
"@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common": "19.0
|
|
39
|
-
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "19.0
|
|
40
|
-
"@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common": "19.0
|
|
41
|
-
"@codingame/monaco-vscode-ddbd4d51-94af-51e5-96b5-f2166ed67ad0-common": "19.0
|
|
42
|
-
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "19.0
|
|
43
|
-
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "19.0
|
|
44
|
-
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "19.0
|
|
45
|
-
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "19.0
|
|
46
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "19.0
|
|
47
|
-
"@codingame/monaco-vscode-f338ac19-278c-5fe1-bec8-b588de04a788-common": "19.0
|
|
18
|
+
"@codingame/monaco-vscode-07eaa805-9dea-5ec6-a422-a4f04872424d-common": "19.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "19.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "19.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-33de3d75-8b1a-53f0-9e27-0c71c327e1a1-common": "19.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common": "19.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "19.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-64322fa2-7385-5f46-935b-8f243d98004b-common": "19.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "19.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "19.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common": "19.1.0",
|
|
30
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "19.1.0",
|
|
31
|
+
"@codingame/monaco-vscode-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common": "19.1.0",
|
|
32
|
+
"@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common": "19.1.0",
|
|
33
|
+
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.1.0",
|
|
34
|
+
"@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common": "19.1.0",
|
|
35
|
+
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "19.1.0",
|
|
36
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.1.0",
|
|
37
|
+
"@codingame/monaco-vscode-api": "19.1.0",
|
|
38
|
+
"@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common": "19.1.0",
|
|
39
|
+
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "19.1.0",
|
|
40
|
+
"@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common": "19.1.0",
|
|
41
|
+
"@codingame/monaco-vscode-ddbd4d51-94af-51e5-96b5-f2166ed67ad0-common": "19.1.0",
|
|
42
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "19.1.0",
|
|
43
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "19.1.0",
|
|
44
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "19.1.0",
|
|
45
|
+
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "19.1.0",
|
|
46
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "19.1.0",
|
|
47
|
+
"@codingame/monaco-vscode-f338ac19-278c-5fe1-bec8-b588de04a788-common": "19.1.0"
|
|
48
48
|
},
|
|
49
49
|
"main": "index.js",
|
|
50
50
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
4
|
import * as chatEditorController from '../media/chatEditorController.css';
|
|
5
|
-
import { getTotalWidth } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
+
import { createElement, getTotalWidth } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
6
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
7
|
import { DisposableStore, toDisposable, dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
@@ -295,7 +295,7 @@ let ChatEditingCodeEditorIntegration = class ChatEditingCodeEditorIntegration {
|
|
|
295
295
|
}
|
|
296
296
|
let extraLines = 0;
|
|
297
297
|
if (reviewMode && !diffMode) {
|
|
298
|
-
const domNode =
|
|
298
|
+
const domNode = createElement('div');
|
|
299
299
|
domNode.className = 'chat-editing-original-zone view-lines line-delete monaco-mouse-cursor-text';
|
|
300
300
|
const result = renderLines(source, renderOptions, decorations, domNode);
|
|
301
301
|
extraLines = result.heightInLines;
|
|
@@ -546,7 +546,7 @@ let DiffHunkWidget = class DiffHunkWidget {
|
|
|
546
546
|
this._lineDelta = _lineDelta;
|
|
547
547
|
this._id = `diff-change-widget-${DiffHunkWidget_1._idPool++}`;
|
|
548
548
|
this._store = ( new DisposableStore());
|
|
549
|
-
this._domNode =
|
|
549
|
+
this._domNode = createElement('div');
|
|
550
550
|
this._domNode.className = 'chat-diff-change-content-widget';
|
|
551
551
|
const toolbar = instaService.createInstance(MenuWorkbenchToolBar, this._domNode, MenuId.ChatEditingEditorHunk, {
|
|
552
552
|
telemetrySource: 'chatEditingEditorHunk',
|
|
@@ -615,7 +615,7 @@ DiffHunkWidget = DiffHunkWidget_1 = ( __decorate([
|
|
|
615
615
|
], DiffHunkWidget));
|
|
616
616
|
class AccessibleDiffViewContainer {
|
|
617
617
|
constructor() {
|
|
618
|
-
this._domNode =
|
|
618
|
+
this._domNode = createElement('div');
|
|
619
619
|
this._domNode.className = 'accessible-diff-view';
|
|
620
620
|
this._domNode.style.width = '100%';
|
|
621
621
|
this._domNode.style.position = 'absolute';
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ModifiedFileEntryState } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
10
10
|
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
11
11
|
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
12
12
|
import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
13
|
-
import { append, $, addDisposableGenericMouseMoveListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
13
|
+
import { createElement, append, $, addDisposableGenericMouseMoveListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
14
14
|
import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
15
15
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
16
16
|
import { navigationBearingFakeActionId, AcceptAction, RejectAction } from './chatEditingEditorActions.js';
|
|
@@ -49,7 +49,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
49
49
|
this._session = observableValue(this, undefined);
|
|
50
50
|
this._entry = observableValue(this, undefined);
|
|
51
51
|
this._navigationBearings = observableValue(this, { changeCount: -1, activeIdx: -1, entriesCount: -1 });
|
|
52
|
-
this._domNode =
|
|
52
|
+
this._domNode = createElement('div');
|
|
53
53
|
this._domNode.classList.add('chat-editor-overlay-widget');
|
|
54
54
|
this._isBusy = derived(r => {
|
|
55
55
|
const entry = this._entry.read(r);
|
|
@@ -83,7 +83,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
83
83
|
return { message: ( localize(4863, "Working...")) };
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
const progressNode =
|
|
86
|
+
const progressNode = createElement('div');
|
|
87
87
|
progressNode.classList.add('chat-editor-overlay-progress');
|
|
88
88
|
append(progressNode, renderIcon(ThemeIcon.modify(Codicon.loading, 'spin')));
|
|
89
89
|
const textProgress = append(progressNode, $('span.progress-message'));
|
|
@@ -99,7 +99,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
99
99
|
textProgress.innerText = renderStringAsPlaintext(value.message);
|
|
100
100
|
}
|
|
101
101
|
}));
|
|
102
|
-
this._toolbarNode =
|
|
102
|
+
this._toolbarNode = createElement('div');
|
|
103
103
|
this._toolbarNode.classList.add('chat-editor-overlay-toolbar');
|
|
104
104
|
}
|
|
105
105
|
dispose() {
|
|
@@ -260,7 +260,7 @@ ChatEditorOverlayWidget = ( __decorate([
|
|
|
260
260
|
let ChatEditingOverlayController = class ChatEditingOverlayController {
|
|
261
261
|
constructor(container, group, instaService, chatService, chatEditingService, inlineChatService) {
|
|
262
262
|
this._store = ( new DisposableStore());
|
|
263
|
-
this._domNode =
|
|
263
|
+
this._domNode = createElement('div');
|
|
264
264
|
this._domNode.classList.add('chat-editing-editor-overlay');
|
|
265
265
|
this._domNode.style.position = 'absolute';
|
|
266
266
|
this._domNode.style.bottom = `24px`;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
4
|
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { AccessibilitySignal } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
|
5
6
|
import { IAccessibilitySignalService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service';
|
|
@@ -39,7 +40,7 @@ let OverlayToolbarDecorator = class OverlayToolbarDecorator extends Disposable {
|
|
|
39
40
|
if (!cellViewModel || cellViewModel.cellKind !== CellKind.Markup) {
|
|
40
41
|
continue;
|
|
41
42
|
}
|
|
42
|
-
const toolbarContainer =
|
|
43
|
+
const toolbarContainer = createElement('div');
|
|
43
44
|
let overlayId = undefined;
|
|
44
45
|
editor.changeCellOverlays((accessor) => {
|
|
45
46
|
toolbarContainer.style.right = '44px';
|
|
@@ -56,7 +57,7 @@ let OverlayToolbarDecorator = class OverlayToolbarDecorator extends Disposable {
|
|
|
56
57
|
});
|
|
57
58
|
};
|
|
58
59
|
this.overlayDisposables.add({ dispose: removeOverlay });
|
|
59
|
-
const toolbar =
|
|
60
|
+
const toolbar = createElement('div');
|
|
60
61
|
toolbarContainer.appendChild(toolbar);
|
|
61
62
|
toolbar.className = 'chat-diff-change-content-widget';
|
|
62
63
|
toolbar.classList.add('hover');
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js
CHANGED
|
@@ -22,7 +22,7 @@ import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
22
22
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
23
23
|
import { ButtonWithDropdown, Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
24
24
|
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
25
|
-
import { addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
25
|
+
import { createElement, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
26
26
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
27
27
|
import { cleanupOldImages, createFileForMedia } from '@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/browser/imageUtils';
|
|
28
28
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
@@ -68,9 +68,9 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
68
68
|
}));
|
|
69
69
|
this.imagesFolder = joinPath(this.environmentService.workspaceStorageHome, 'vscode-chat-images');
|
|
70
70
|
cleanupOldImages(this.fileService, this.logService, this.imagesFolder);
|
|
71
|
-
this._domNode =
|
|
71
|
+
this._domNode = createElement('div');
|
|
72
72
|
this._domNode.className = 'element-selection-message';
|
|
73
|
-
const message =
|
|
73
|
+
const message = createElement('span');
|
|
74
74
|
const startSelectionMessage = ( localize(4886, 'Add element to chat'));
|
|
75
75
|
message.textContent = startSelectionMessage;
|
|
76
76
|
this._domNode.appendChild(message);
|
|
@@ -133,7 +133,7 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
133
133
|
nextSelection.element.classList.add('hidden');
|
|
134
134
|
const expandOverlay = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(4899, "Expand Overlay")) })));
|
|
135
135
|
expandOverlay.icon = Codicon.layout;
|
|
136
|
-
const expandContainer =
|
|
136
|
+
const expandContainer = createElement('div');
|
|
137
137
|
expandContainer.className = 'element-expand-container hidden';
|
|
138
138
|
expandContainer.appendChild(expandOverlay.element);
|
|
139
139
|
this._container.appendChild(expandContainer);
|
|
@@ -280,7 +280,7 @@ let SimpleBrowserOverlayController = class SimpleBrowserOverlayController {
|
|
|
280
280
|
this.configurationService = configurationService;
|
|
281
281
|
this._browserElementsService = _browserElementsService;
|
|
282
282
|
this._store = ( new DisposableStore());
|
|
283
|
-
this._domNode =
|
|
283
|
+
this._domNode = createElement('div');
|
|
284
284
|
if (!this.configurationService.getValue('chat.sendElementsToChat.enabled')) {
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
@@ -293,7 +293,7 @@ let SimpleBrowserOverlayController = class SimpleBrowserOverlayController {
|
|
|
293
293
|
this._domNode.appendChild(widget.getDomNode());
|
|
294
294
|
this._store.add(toDisposable(() => this._domNode.remove()));
|
|
295
295
|
this._store.add(widget);
|
|
296
|
-
const connectingWebviewElement =
|
|
296
|
+
const connectingWebviewElement = createElement('div');
|
|
297
297
|
connectingWebviewElement.className = 'connecting-webview-element';
|
|
298
298
|
const getActiveBrowserType = () => {
|
|
299
299
|
const editor = group.activeEditorPane;
|