Luca Trazzi Luca Trazzi - 1 month ago 11
TypeScript Question

vscode extension API - how to get only visible lines of editor

I've searched the documentation but I could find nothing.

is there a way to get only the "visible" text of the document in the editor (so, I don't want to get the text / lines of hidden text by scrollbar)?

Thanks guys!

Answer

This is not possible with the current API.

You can make a feature request by creating an issue here: https://github.com/microsoft/vscode/issues

Comments