@codingame/monaco-vscode-chat-service-override 26.2.0 → 26.2.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": "26.2.
|
|
3
|
+
"version": "26.2.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": "26.2.
|
|
19
|
-
"@codingame/monaco-vscode-katex-common": "26.2.
|
|
20
|
-
"@codingame/monaco-vscode-xterm-addons-common": "26.2.
|
|
21
|
-
"@codingame/monaco-vscode-xterm-common": "26.2.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.2.2",
|
|
19
|
+
"@codingame/monaco-vscode-katex-common": "26.2.2",
|
|
20
|
+
"@codingame/monaco-vscode-xterm-addons-common": "26.2.2",
|
|
21
|
+
"@codingame/monaco-vscode-xterm-common": "26.2.2"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
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
|
-
import { createElement, trackFocus, getActiveWindow, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { createElement, DisposableResizeObserver, trackFocus, getActiveWindow, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { createCancelablePromise, DeferredPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
6
6
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
7
7
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
@@ -127,9 +127,8 @@ let TerminalChatWidget = class TerminalChatWidget extends Disposable {
|
|
|
127
127
|
Event.fromObservableLight(this._inlineChatWidget.chatWidget.input.selectedLanguageModel),
|
|
128
128
|
Event.debounce(this._xterm.raw.onCursorMove, () => void 0, MicrotaskDelay)
|
|
129
129
|
)(() => this._relayout()));
|
|
130
|
-
const observer = ( new
|
|
130
|
+
const observer = this._register(( new DisposableResizeObserver(() => this._relayout())));
|
|
131
131
|
observer.observe(this._terminalElement);
|
|
132
|
-
this._register(toDisposable(() => observer.disconnect()));
|
|
133
132
|
this._resetPlaceholder();
|
|
134
133
|
this._container.appendChild(this._inlineChatWidget.domNode);
|
|
135
134
|
this._focusTracker = this._register(trackFocus(this._container));
|