提交 ed6b7a8b 编写于 作者: M Michel Kaporin 提交者: Alex Dima

Fixes #25777

上级 d7d749b6
......@@ -275,6 +275,7 @@ export abstract class ZoneWidget extends Widget implements IHorizontalSashLayout
// Render the widget as zone (rendering) and widget (lifecycle)
const viewZoneDomNode = document.createElement('div');
viewZoneDomNode.style.overflow = 'hidden';
const lineHeight = this.editor.getConfiguration().lineHeight;
// adjust heightInLines to viewport
......
......@@ -33,7 +33,7 @@ export class ExceptionWidget extends ZoneWidget {
@IThemeService themeService: IThemeService,
@IInstantiationService private instantiationService: IInstantiationService
) {
super(editor, { showFrame: true, showArrow: true, frameWidth: 1 });
super(editor, { showFrame: true, showArrow: true, frameWidth: 1, className: 'exception-widget-container' });
this._backgroundColor = Color.white;
......
......@@ -3,6 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-editor .zone-widget.exception-widget-container {
overflow: hidden;
}
.monaco-editor .zone-widget .zone-widget-container.exception-widget {
padding: 6px 10px;
white-space: pre-wrap;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册