提交 4d01741c 编写于 作者: A Alex Dima

Optimize away looping through lines for huge files

上级 a27776bf
......@@ -488,6 +488,10 @@ export class TextModel extends Disposable implements model.ITextModel {
public isDominatedByLongLines(): boolean {
this._assertNotDisposed();
if (this.isTooLargeForTokenization()) {
// Cannot word wrap huge files anyways, so it doesn't really matter
return false;
}
let smallLineCharCount = 0;
let longLineCharCount = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册