提交 a0cf115d 编写于 作者: A Alex Dima

Fixes #28694: Call `conf.setMaxLineNumber` before using the computed layout info

上级 8abdf3bd
......@@ -858,6 +858,7 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
if (this.model) {
this.domElement.setAttribute('data-mode-id', this.model.getLanguageIdentifier().language);
this._configuration.setIsDominatedByLongLines(this.model.isDominatedByLongLines());
this._configuration.setMaxLineNumber(this.model.getLineCount());
this.model.onBeforeAttached();
......
......@@ -120,8 +120,6 @@ export class ViewModel extends viewEvents.ViewEventEmitter implements IViewModel
conf.wrappingInfo.wrappingIndent
);
this.configuration.setMaxLineNumber(this.model.getLineCount());
this.coordinatesConverter = new CoordinatesConverter(this.lines);
this.viewLayout = this._register(new ViewLayout(this.configuration, this.getLineCount()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册