Class MonacoToProtocolConverter
Methods
asPosition
- asPosition(lineNumber, column): {}
Parameters
- lineNumber: undefined | null
- column: undefined | null
Returns {}
- asPosition(lineNumber, column): Pick<Position, "line">
Parameters
- lineNumber: number
- column: undefined | null
Returns Pick<Position, "line">
- asPosition(lineNumber, column): Pick<Position, "character">
Parameters
- lineNumber: undefined | null
- column: number
Returns Pick<Position, "character">
- asPosition(lineNumber, column): Position
Parameters
- lineNumber: number
- column: number
Returns Position
- asPosition(lineNumber, column): Partial<Position>
Parameters
- lineNumber: undefined | null | number
- column: undefined | null | number
Returns Partial<Position>
asRange
- asRange(range): undefined
Returns undefined
- asRange(range): Range
Returns Range
- asRange(range): undefined | Range
Parameters
- range: undefined | IRange
Returns undefined | Range
- asRange(range): Range
Parameters
- range: IRange | {
insert: IRange;
replace: IRange;
}
Returns Range
- asRange(range): RecursivePartial<Range>
Returns RecursivePartial<Range>
- asRange(range): undefined | RecursivePartial<Range>
Parameters
- range: undefined | Partial<IRange>
Returns undefined | RecursivePartial<Range>
asSelection
- asSelection(selection): Selection
Returns Selection