提交 00a9e546 编写于 作者: A Alex Dima

Fixes #52227

上级 e3b93b87
......@@ -811,7 +811,8 @@ export class SplitLinesCollection implements IViewModelLinesCollection {
if (modelEnd.lineNumber - modelStart.lineNumber <= range.endLineNumber - range.startLineNumber) {
// most likely there are no hidden lines => fast path
return this.model.getDecorationsInRange(new Range(modelStart.lineNumber, modelStart.column, modelEnd.lineNumber, modelEnd.column), ownerId, filterOutValidation);
// fetch decorations from column 1 to cover the case of wrapped lines that have whole line decorations at column 1
return this.model.getDecorationsInRange(new Range(modelStart.lineNumber, 1, modelEnd.lineNumber, modelEnd.column), ownerId, filterOutValidation);
}
let result: IModelDecoration[] = [];
......
......@@ -81,6 +81,7 @@ suite('ViewModelDecorations', () => {
});
assert.deepEqual(actualDecorations, [
'dec1',
'dec2',
'dec3',
'dec4',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册