Module: util/getDisplayLineMap
Functions
getDisplayLineMap
▸ getDisplayLineMap(editor
): Map
<number
, number
>
Returns a map from line numbers in the file to display lines, which skip folded sections etc. Note that if the cursor is currently offscreen, it will add a line for the cursor before or after the screen lines depending whether cursor is above or below last visible line.
Parameters
Name | Type | Description |
---|---|---|
editor | TextEditor | A visible editor |
Returns
Map
<number
, number
>
Defined in
util/getDisplayLineMap.ts:12