@codingame/monaco-vscode-katex-common 26.2.1 → 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-katex-common",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package depending on katex",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.2.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.2.2",
|
|
19
19
|
"katex": "0.16.27",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
@@ -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 { $ as $$1, getWindow, isHTMLElement, addDisposableListener, EventType, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { $ as $$1, getWindow, DisposableResizeObserver, isHTMLElement, addDisposableListener, EventType, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { allowedMarkdownHtmlAttributes } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
6
6
|
import { StandardMouseEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/mouseEvent';
|
|
7
7
|
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
@@ -12,7 +12,7 @@ import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arr
|
|
|
12
12
|
import { findLast } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arraysFind';
|
|
13
13
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
14
14
|
import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
|
|
15
|
-
import { Disposable,
|
|
15
|
+
import { Disposable, MutableDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
16
16
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
17
17
|
import { ScrollbarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable';
|
|
18
18
|
import { equalsIgnoreCase } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
@@ -324,9 +324,8 @@ let ChatMarkdownContentPart = class ChatMarkdownContentPart extends Disposable {
|
|
|
324
324
|
markdownDecorationsRenderer.walkTreeAndAnnotateReferenceLinks(markdown, result.element)
|
|
325
325
|
);
|
|
326
326
|
const layoutParticipants = ( new Lazy(() => {
|
|
327
|
-
const observer = ( new
|
|
327
|
+
const observer = this._register(( new DisposableResizeObserver(() => this.mathLayoutParticipants.forEach(layout => layout()))));
|
|
328
328
|
observer.observe(this.domNode);
|
|
329
|
-
this._register(toDisposable(() => observer.disconnect()));
|
|
330
329
|
return this.mathLayoutParticipants;
|
|
331
330
|
}));
|
|
332
331
|
for (const katexBlock of this.domNode.querySelectorAll(".katex-display")) {
|
|
@@ -27,6 +27,7 @@ import { ILanguageModelsService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
27
27
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
28
28
|
import * as chatThinkingContent from './media/chatThinkingContent.css';
|
|
29
29
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
30
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
30
31
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
31
32
|
|
|
32
33
|
registerCss(chatThinkingContent);
|
|
@@ -227,11 +228,11 @@ let ChatThinkingContentPart = class ChatThinkingContentPart extends ChatCollapsi
|
|
|
227
228
|
alwaysConsumeMouseWheel: false
|
|
228
229
|
})));
|
|
229
230
|
this._register(this.scrollableElement.onScroll(e => this.handleScroll(e.scrollTop)));
|
|
230
|
-
const mutationObserver =
|
|
231
|
+
const mutationObserver = new mainWindow.MutationObserver(() => {
|
|
231
232
|
if (!this.streamingCompleted) {
|
|
232
233
|
this.syncDimensionsAndScheduleScroll();
|
|
233
234
|
}
|
|
234
|
-
})
|
|
235
|
+
});
|
|
235
236
|
mutationObserver.observe(this.wrapper, {
|
|
236
237
|
childList: true,
|
|
237
238
|
subtree: true,
|
|
@@ -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 { h, addDisposableListener, EventType, clearNode, getActiveWindow, getComputedStyle, createTextNode, createElement, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { h, addDisposableListener, EventType, DisposableResizeObserver, clearNode, getActiveWindow, getComputedStyle, createTextNode, createElement, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
6
6
|
import { MarkdownString, isMarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
7
7
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -790,9 +790,8 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
|
|
|
790
790
|
EventType.FOCUS_OUT,
|
|
791
791
|
event => this._onDidBlurEmitter.fire(event)
|
|
792
792
|
));
|
|
793
|
-
const resizeObserver = (
|
|
793
|
+
const resizeObserver = this._register(new DisposableResizeObserver(() => this._handleResize()));
|
|
794
794
|
resizeObserver.observe(this.domNode);
|
|
795
|
-
this._register(toDisposable(() => resizeObserver.disconnect()));
|
|
796
795
|
this._applyBackgroundColor();
|
|
797
796
|
this._register(
|
|
798
797
|
this._themeService.onDidColorThemeChange(() => this._applyBackgroundColor())
|