提交 7e7f3c44 编写于 作者: J Johannes Rieken

fix tests

上级 6a2e162a
...@@ -790,10 +790,13 @@ export class SuggestWidget implements IContentWidget, IDisposable { ...@@ -790,10 +790,13 @@ export class SuggestWidget implements IContentWidget, IDisposable {
} }
private _layout(size: dom.Dimension | undefined): void { private _layout(size: dom.Dimension | undefined): void {
if (!this.editor.hasModel()) { if (!this.editor.hasModel()) {
return; return;
} }
if (!this.editor.getDomNode()) {
// happens when running tests
return;
}
let height = size?.height; let height = size?.height;
let width = size?.width; let width = size?.width;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册