TypeshadePosition
이 페이지에서

TypeshadePosition

인터페이스, 편집기 분류

Zero-based editor position: line and character both start at 0, following the Language Server Protocol convention.

import type { TypeshadePosition } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

interface TypeshadePosition {
readonly line: number;
readonly character: number;
}

설명

Monaco adapters add 1 to each of these before displaying or accepting a position, since Monaco’s own API is one-based.

인스턴스 속성

line읽기 전용 number

Zero-based line number.

character읽기 전용 number

Zero-based UTF-16 character offset within the line.

소스

src/language-service.ts, 18행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고