from monaco.d.ts:
export interface FoldingRange {
/**
* The zero-based start line of the range to fold. The folded area starts after the line's last character.
*/
start: number;
zero-based is a mistake? asking because Position is 1-based
It's a mistake, should say 1-based, will fix
@akosyakov @aeschli Am I misreading something? Isn't Position zero-based?
Never mind, false alarm. I talked to Anton and he explained to me that Monaco is one-based but the LSP is zero-based.
Sorry for the noise!
Most helpful comment
It's a mistake, should say 1-based, will fix