Skip to content

Support serializing a specific line #4871

@Tyriar

Description

@Tyriar

I'm implementing sticky scroll in VS Code (microsoft/vscode#172742) which needs to serialize a particular line. Right now it's rather inefficient as I need to scroll up to the line, not only the line:

// TODO: Serializing all content up to the required line is inefficient; support providing single line/range serialize addon
const s = this._serializeAddon?.serialize({
	scrollback: this._xterm.raw.buffer.active.baseY - marker.line
});
if (s) {
	const content = s.substring(0, s.indexOf('\r'));
	...
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions