Monaco-editor: zero-based FoldingRange

Created on 1 Aug 2018  路  3Comments  路  Source: microsoft/monaco-editor

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

Most helpful comment

It's a mistake, should say 1-based, will fix

All 3 comments

It's a mistake, should say 1-based, will fix

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreymarchenko picture andreymarchenko  路  3Comments

inf9144 picture inf9144  路  3Comments

SoftTimur picture SoftTimur  路  3Comments

fabiospampinato picture fabiospampinato  路  3Comments

PinkyJie picture PinkyJie  路  3Comments